Language

FactoryResetProtectionPolicy.Builder.SetFactoryResetProtectionEnabled メソッド

定義

出荷時の設定にリセットする保護を有効にするかどうかを設定します。

[Android.Runtime.Register("setFactoryResetProtectionEnabled", "(Z)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionEnabled_ZHandler", ApiSince=30)]
public virtual Android.App.Admin.FactoryResetProtectionPolicy.Builder SetFactoryResetProtectionEnabled(bool factoryResetProtectionEnabled);
[<Android.Runtime.Register("setFactoryResetProtectionEnabled", "(Z)Landroid/app/admin/FactoryResetProtectionPolicy$Builder;", "GetSetFactoryResetProtectionEnabled_ZHandler", ApiSince=30)>]
abstract member SetFactoryResetProtectionEnabled : bool -> Android.App.Admin.FactoryResetProtectionPolicy.Builder
override this.SetFactoryResetProtectionEnabled : bool -> Android.App.Admin.FactoryResetProtectionPolicy.Builder

パラメーター

factoryResetProtectionEnabled
Boolean

ポリシーが有効かどうか。

返品

同じ Builder インスタンス。 この値は null にすることはできません。

属性

注釈

出荷時の設定にリセットする保護を有効にするかどうかを設定します。

無効にすると、デバイスが信頼されていない出荷時の設定にリセットされたときに、出荷時の設定にリセットされた保護が一緒に開始されることはありません。 これは、コンシューマーのロック解除フローと、setFactoryResetProtectionAccounts(List) による管理者アカウントのオーバーライドの両方に適用されます。 既定では、出荷時の設定にリセットする保護が有効になっています。

android.app.admin.FactoryResetProtectionPolicy.Builder.setFactoryResetProtectionEnabledの Android リファレンス。

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

適用対象