Udostępnij za pośrednictwem


PhoneAccountHandle Constructors

Definition

Overloads

PhoneAccountHandle(ComponentName, String)

Creates a new PhoneAccountHandle.

PhoneAccountHandle(ComponentName, String, UserHandle)

Creates a new PhoneAccountHandle.

PhoneAccountHandle(ComponentName, String)

Creates a new PhoneAccountHandle.

[Android.Runtime.Register(".ctor", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "", ApiSince=23)]
public PhoneAccountHandle (Android.Content.ComponentName componentName, string id);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ComponentName;Ljava/lang/String;)V", "", ApiSince=23)>]
new Android.Telecom.PhoneAccountHandle : Android.Content.ComponentName * string -> Android.Telecom.PhoneAccountHandle

Parameters

componentName
ComponentName

The ComponentName of the ConnectionService which services this PhoneAccountHandle.

id
String

A string identifier that is unique across PhoneAccountHandles with the same component name. Apps registering PhoneAccountHandles should ensure that the ID provided does not expose personally identifying information. A ConnectionService should use an opaque token as the PhoneAccountHandle identifier. <p> Note: Each 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.

Attributes

Remarks

Creates a new PhoneAccountHandle.

Java documentation for android.telecom.PhoneAccountHandle.PhoneAccountHandle(android.content.ComponentName, java.lang.String).

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

PhoneAccountHandle(ComponentName, String, UserHandle)

Creates a new PhoneAccountHandle.

[Android.Runtime.Register(".ctor", "(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V", "", ApiSince=23)]
public PhoneAccountHandle (Android.Content.ComponentName componentName, string id, Android.OS.UserHandle userHandle);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/UserHandle;)V", "", ApiSince=23)>]
new Android.Telecom.PhoneAccountHandle : Android.Content.ComponentName * string * Android.OS.UserHandle -> Android.Telecom.PhoneAccountHandle

Parameters

componentName
ComponentName

The ComponentName of the ConnectionService which services this PhoneAccountHandle.

id
String

A string identifier that is unique across PhoneAccountHandles with the same component name. Apps registering PhoneAccountHandles should ensure that the ID provided does not expose personally identifying information. A ConnectionService should use an opaque token as the PhoneAccountHandle identifier.

userHandle
UserHandle

The UserHandle associated with this PhoneAccountHandle.

        &lt;p&gt;
        Note: Each String field is limited to 256 characters. This check is enforced when
                  registering the PhoneAccount via
                  <code data-dev-comment-type="c">TelecomManager#registerPhoneAccount(PhoneAccount)</code> and will cause an
                  <code data-dev-comment-type="c">IllegalArgumentException</code> to be thrown if the character field limit is
                  over 256.
Attributes

Remarks

Creates a new PhoneAccountHandle.

Java documentation for android.telecom.PhoneAccountHandle.PhoneAccountHandle(android.content.ComponentName, java.lang.String, android.os.UserHandle).

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