PhoneAccount.Builder Constructors

Definition

Overloads

PhoneAccount.Builder(PhoneAccount)

Creates an instance of the PhoneAccount.Builder from an existing PhoneAccount.

PhoneAccount.Builder(PhoneAccountHandle, ICharSequence)

Creates a builder with the specified PhoneAccountHandle and label.

PhoneAccount.Builder(PhoneAccountHandle, String)
PhoneAccount.Builder(IntPtr, JniHandleOwnership)

PhoneAccount.Builder(PhoneAccount)

Creates an instance of the PhoneAccount.Builder from an existing PhoneAccount.

[Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccount;)V", "", ApiSince=23)]
public Builder (Android.Telecom.PhoneAccount phoneAccount);
[<Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccount;)V", "", ApiSince=23)>]
new Android.Telecom.PhoneAccount.Builder : Android.Telecom.PhoneAccount -> Android.Telecom.PhoneAccount.Builder

Parameters

phoneAccount
PhoneAccount

The PhoneAccount used to initialize the builder.

Attributes

Remarks

Creates an instance of the PhoneAccount.Builder from an existing PhoneAccount.

Java documentation for android.telecom.PhoneAccount.Builder.PhoneAccount$Builder(android.telecom.PhoneAccount).

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

PhoneAccount.Builder(PhoneAccountHandle, ICharSequence)

Creates a builder with the specified PhoneAccountHandle and label.

[Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V", "", ApiSince=23)]
public Builder (Android.Telecom.PhoneAccountHandle accountHandle, Java.Lang.ICharSequence label);
[<Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V", "", ApiSince=23)>]
new Android.Telecom.PhoneAccount.Builder : Android.Telecom.PhoneAccountHandle * Java.Lang.ICharSequence -> Android.Telecom.PhoneAccount.Builder

Parameters

accountHandle
PhoneAccountHandle
Attributes

Remarks

Creates a builder with the specified PhoneAccountHandle and label.

Note: each CharSequence or String field is limited to 256 characters. 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.

Java documentation for android.telecom.PhoneAccount.Builder.PhoneAccount$Builder(android.telecom.PhoneAccountHandle, java.lang.CharSequence).

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

PhoneAccount.Builder(PhoneAccountHandle, String)

[Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V", "", ApiSince=23)]
public Builder (Android.Telecom.PhoneAccountHandle accountHandle, string label);
[<Android.Runtime.Register(".ctor", "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V", "", ApiSince=23)>]
new Android.Telecom.PhoneAccount.Builder : Android.Telecom.PhoneAccountHandle * string -> Android.Telecom.PhoneAccount.Builder

Parameters

accountHandle
PhoneAccountHandle
label
String
Attributes

Remarks

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

PhoneAccount.Builder(IntPtr, JniHandleOwnership)

protected Builder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Telecom.PhoneAccount.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.Telecom.PhoneAccount.Builder

Parameters

javaReference
IntPtr

nativeint

Remarks

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