diff options
Diffstat (limited to 'telecomm/java/android/telecom/Conference.java')
-rw-r--r-- | telecomm/java/android/telecom/Conference.java | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/telecomm/java/android/telecom/Conference.java b/telecomm/java/android/telecom/Conference.java index 0227d27180b5..0eabf153dc26 100644 --- a/telecomm/java/android/telecom/Conference.java +++ b/telecomm/java/android/telecom/Conference.java @@ -24,6 +24,7 @@ import android.telecom.Connection.VideoProvider; import android.util.ArraySet; import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Locale; @@ -164,7 +165,6 @@ public abstract class Conference extends Conferenceable { * {@link Connection} for valid values. * * @return A bitmask of the properties of the conference call. - * @hide */ public final int getConnectionProperties() { return mConnectionProperties; @@ -396,7 +396,6 @@ public abstract class Conference extends Conferenceable { * {@link Connection} for valid values. * * @param connectionProperties A bitmask of the {@code Properties} of the conference call. - * @hide */ public final void setConnectionProperties(int connectionProperties) { if (connectionProperties != mConnectionProperties) { @@ -685,6 +684,8 @@ public abstract class Conference extends Conferenceable { * Keys should be fully qualified (e.g., com.example.MY_EXTRA) to avoid conflicts. * * @param extras The extras associated with this {@code Conference}. + * @deprecated Use {@link #putExtras(Bundle)} to add extras. Use {@link #removeExtras(List)} + * to remove extras. */ public final void setExtras(@Nullable Bundle extras) { // Keeping putExtras and removeExtras in the same lock so that this operation happens as a @@ -727,7 +728,6 @@ public abstract class Conference extends Conferenceable { * Keys should be fully qualified (e.g., com.example.MY_EXTRA) to avoid conflicts. * * @param extras The extras to add. - * @hide */ public final void putExtras(@NonNull Bundle extras) { if (extras == null) { @@ -790,10 +790,9 @@ public abstract class Conference extends Conferenceable { } /** - * Removes an extra from this {@link Conference}. + * Removes extras from this {@link Conference}. * - * @param keys The key of the extra key to remove. - * @hide + * @param keys The keys of the extras to remove. */ public final void removeExtras(List<String> keys) { if (keys == null || keys.isEmpty()) { @@ -815,7 +814,25 @@ public abstract class Conference extends Conferenceable { } /** + * Removes extras from this {@link Conference}. + * + * @param keys The keys of the extras to remove. + */ + public final void removeExtras(String ... keys) { + removeExtras(Arrays.asList(keys)); + } + + /** * Returns the extras associated with this conference. + * <p> + * Extras should be updated using {@link #putExtras(Bundle)} and {@link #removeExtras(List)}. + * <p> + * Telecom or an {@link InCallService} can also update the extras via + * {@link android.telecom.Call#putExtras(Bundle)}, and + * {@link Call#removeExtras(List)}. + * <p> + * The conference is notified of changes to the extras made by Telecom or an + * {@link InCallService} by {@link #onExtrasChanged(Bundle)}. * * @return The extras associated with this connection. */ @@ -832,7 +849,6 @@ public abstract class Conference extends Conferenceable { * {@link Call#removeExtras(List)}. * * @param extras The new extras bundle. - * @hide */ public void onExtrasChanged(Bundle extras) {} |