PhoneAccount.Builder Constructors
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.
Overloads
PhoneAccount.Builder(PhoneAccount) |
Creates an instance of the |
PhoneAccount.Builder(PhoneAccountHandle, ICharSequence) |
Creates a builder with the specified |
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
.
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
- label
- ICharSequence
- 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.
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
- transfer
- JniHandleOwnership
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.