语言

AttributionSource.DeviceId 属性

定义

获取此归因源的设备 ID。

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

属性值

获取此归因源的设备 ID。 归因源可以使用 Builder.setDeviceId(int) 设置设备 ID,默认设备 ID 为Context.DEVICE_ID_DEFAULT。 此设备 ID 用于在属性源验证期间进行权限检查。

特性

注解

获取此归因源的设备 ID。 属性源可以使用默认设备 ID 设置设备 IDBuilder#setDeviceId(int)Context#DEVICE_ID_DEFAULT。

此设备 ID 用于在属性源验证期间进行权限检查。

Java文档android.content.AttributionSource.getDeviceId()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于