Język

DeviceId.Builder.SetCustomId(String) Method

Definition

Sets the custom device id.

[Android.Runtime.Register("setCustomId", "(Ljava/lang/String;)Landroid/companion/DeviceId$Builder;", "", ApiSince=36)]
public Android.Companion.DeviceId.Builder SetCustomId(string? customId);
[<Android.Runtime.Register("setCustomId", "(Ljava/lang/String;)Landroid/companion/DeviceId$Builder;", "", ApiSince=36)>]
member this.SetCustomId : string -> Android.Companion.DeviceId.Builder

Parameters

customId
String

the custom device id. This value may be null.

Returns

Attributes

Remarks

Sets the custom device id. This id is used by the Companion app to identify a specific device.

Android reference for android.companion.DeviceId.Builder.setCustomId.

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