Język

DeviceId.Builder.SetMacAddress(MacAddress) Method

Definition

Sets the mac address.

[Android.Runtime.Register("setMacAddress", "(Landroid/net/MacAddress;)Landroid/companion/DeviceId$Builder;", "", ApiSince=36)]
public Android.Companion.DeviceId.Builder SetMacAddress(Android.Net.MacAddress? macAddress);
[<Android.Runtime.Register("setMacAddress", "(Landroid/net/MacAddress;)Landroid/companion/DeviceId$Builder;", "", ApiSince=36)>]
member this.SetMacAddress : Android.Net.MacAddress -> Android.Companion.DeviceId.Builder

Parameters

macAddress
MacAddress

the remote device mac address. This value may be null.

Returns

Attributes

Remarks

Sets the mac address. This mac address is used by the Companion app to identify a specific device.

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

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