语言

CardEmulation.PropertyAllowSharedRolePriority 字段

定义

用于指示应用程序希望在此应用程序为角色持有者时允许关联的服务共享相同的 AID 路由优先级的属性名称。

[Android.Runtime.Register("PROPERTY_ALLOW_SHARED_ROLE_PRIORITY", ApiSince=36)]
public const string PropertyAllowSharedRolePriority;
[<Android.Runtime.Register("PROPERTY_ALLOW_SHARED_ROLE_PRIORITY", ApiSince=36)>]
val mutable PropertyAllowSharedRolePriority : string

字段值

特性

注解

用于指示应用程序希望在此应用程序为角色持有者时允许关联的服务共享相同的 AID 路由优先级的属性名称。 电子钱包角色持有者可以:将“android:value”设置为“true”。 这将允许同一证书签名的任何包请求角色持有者优先级;将“android:value”设置为其他一些包名称。 这只允许此包请求角色持有者优先级(可以由不同的证书签名)。

<application>
  ...
<property android:name="android.nfc.cardemulation.PROPERTY_ALLOW_SHARED_ROLE_PRIORITY"
    android:value="true"/>
</application>
<service>
  ...
<property android:name="android.nfc.cardemulation.PROPERTY_ALLOW_SHARED_ROLE_PRIORITY"
    android:value="com.org.example"/>
</service>

Android 参考。android.nfc.cardemulation.CardEmulation.PROPERTY_ALLOW_SHARED_ROLE_PRIORITY

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于