Partager via


AttributionSource.DeviceId Property

Definition

Gets the device ID for this attribution source.

public int DeviceId { [Android.Runtime.Register("getDeviceId", "()I", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getDeviceId", "()I", "", ApiSince=35)>]
member this.DeviceId : int

Property Value

Attributes

Remarks

Gets the device ID for this attribution source. Attribution source can set the device ID using Builder#setDeviceId(int), the default device ID is Context#DEVICE_ID_DEFAULT.

This device ID is used for permissions checking during attribution source validation.

Java documentation for android.content.AttributionSource.getDeviceId().

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