DevicePolicyManager.SetLocationEnabled(ComponentName, Boolean) メソッド

定義

ユーザーのグローバルな場所の設定を設定するために、デバイス所有者によって呼び出されます。

[Android.Runtime.Register("setLocationEnabled", "(Landroid/content/ComponentName;Z)V", "GetSetLocationEnabled_Landroid_content_ComponentName_ZHandler", ApiSince=30)]
public virtual void SetLocationEnabled (Android.Content.ComponentName admin, bool locationEnabled);
[<Android.Runtime.Register("setLocationEnabled", "(Landroid/content/ComponentName;Z)V", "GetSetLocationEnabled_Landroid_content_ComponentName_ZHandler", ApiSince=30)>]
abstract member SetLocationEnabled : Android.Content.ComponentName * bool -> unit
override this.SetLocationEnabled : Android.Content.ComponentName * bool -> unit

パラメーター

admin
ComponentName

DeviceAdminReceiverこの要求が関連付けられているもの

locationEnabled
Boolean

場所を有効または無効にする必要があるかどうか。 <b>注: <の android.content.pm.PackageManager#FEATURE_AUTOMOTIVE automotive builds/b> は、無効にする呼び出しは無視されます。

属性

注釈

ユーザーのグローバルな場所の設定を設定するために、デバイス所有者によって呼び出されます。

android.app.admin.DevicePolicyManager.setLocationEnabled(android.content.ComponentName, boolean)Java ドキュメント。

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

適用対象