Language

SubscriptionManager.CanManageSubscription(SubscriptionInfo) メソッド

定義

特定のコンテキストを持つアプリが、そのメタデータに従って特定のサブスクリプションを管理する権限があるかどうかを確認します。

[Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)]
public virtual bool CanManageSubscription(Android.Telephony.SubscriptionInfo? info);
[<Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)>]
abstract member CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool
override this.CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool

パラメーター

info
SubscriptionInfo

確認するサブスクリプション。

戻り値

アプリがメタデータに従ってこのサブスクリプションを管理する権限を持つかどうか。

属性

注釈

特定のコンテキストを持つアプリが、そのメタデータに従って特定のサブスクリプションを管理する権限があるかどうかを確認します。

埋め込みサブスクリプションでのみサポートされます ( SubscriptionInfo#isEmbedded が true を返す場合)。 埋め込みサブスクリプション以外のアクセス許可も確認するには、 android.telephony.TelephonyManager#hasCarrierPrivilegesを参照してください。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象