PhoneAccount.Builder.SetExtras(Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the extras associated with the PhoneAccount.
[Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/telecom/PhoneAccount$Builder;", "GetSetExtras_Landroid_os_Bundle_Handler", ApiSince=24)]
public virtual Android.Telecom.PhoneAccount.Builder SetExtras(Android.OS.Bundle extras);
[<Android.Runtime.Register("setExtras", "(Landroid/os/Bundle;)Landroid/telecom/PhoneAccount$Builder;", "GetSetExtras_Landroid_os_Bundle_Handler", ApiSince=24)>]
abstract member SetExtras : Android.OS.Bundle -> Android.Telecom.PhoneAccount.Builder
override this.SetExtras : Android.OS.Bundle -> Android.Telecom.PhoneAccount.Builder
Parameters
- extras
- Bundle
Returns
- Attributes
Remarks
Specifies the extras associated with the PhoneAccount.
PhoneAccounts only support extra values of type: String, Integer, and Boolean. Extras which are not of these types are ignored.
Note: Each Bundle (Key, Value) String field is limited to 256 characters. Additionally, the bundle is limited to 100 (Key, Value) pairs total. This check is enforced when registering the PhoneAccount via TelecomManager.registerPhoneAccount(PhoneAccount) and will cause an IllegalArgumentException to be thrown if the character field limit is over 256 or more than 100 (Key, Value) pairs are in the Bundle.
Android reference for android.telecom.PhoneAccount.Builder.setExtras.
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.