PhoneAccountHandle 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
PhoneAccountHandle(ComponentName, String) |
Creates a new |
PhoneAccountHandle(ComponentName, String, UserHandle) |
Creates a new |
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 PhoneAccountHandle
s with the same
component name. Apps registering PhoneAccountHandle
s 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
.
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 PhoneAccountHandle
s with the same
component name. Apps registering PhoneAccountHandle
s 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
.
<p>
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
.
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.