Partager via


Connection.Extras Property

Definition

Returns the extras associated with this connection. -or- Set some extras that can be associated with this Connection.

public Android.OS.Bundle? Extras { [Android.Runtime.Register("getExtras", "()Landroid/os/Bundle;", "", ApiSince=23)] get; [Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getExtras", "()Landroid/os/Bundle;", "", ApiSince=23)>]
[<set: Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)V", "", ApiSince=23)>]
member this.Extras : Android.OS.Bundle with get, set

Property Value

The extras associated with this connection.

Attributes

Remarks

Property getter documentation:

Returns the extras associated with this connection.

Extras should be updated using #putExtras(Bundle).

Telecom or an InCallService can also update the extras via android.telecom.Call#putExtras(Bundle), and Call#removeExtras(List).

The connection is notified of changes to the extras made by Telecom or an InCallService by #onExtrasChanged(Bundle).

Java documentation for android.telecom.Connection.getExtras().

Property setter documentation:

Set some extras that can be associated with this Connection.

New or existing keys are replaced in the Connection extras. Keys which are no longer in the new extras, but were present the last time setExtras was called are removed.

Alternatively you may use the #putExtras(Bundle), and #removeExtras(String...) methods to modify the extras.

No assumptions should be made as to how an In-Call UI or service will handle these extras. Keys should be fully qualified (e.g., com.example.MY_EXTRA) to avoid conflicts.

Java documentation for android.telecom.Connection.setExtras(android.os.Bundle).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to