Udostępnij za pośrednictwem


UserManager.DisallowContentSuggestions Field

Definition

Specifies if the current user is able to receive content suggestions for selections based on the contents of their screen.

[Android.Runtime.Register("DISALLOW_CONTENT_SUGGESTIONS", ApiSince=29)]
public const string DisallowContentSuggestions;
[<Android.Runtime.Register("DISALLOW_CONTENT_SUGGESTIONS", ApiSince=29)>]
val mutable DisallowContentSuggestions : string

Field Value

Attributes

Remarks

Specifies if the current user is able to receive content suggestions for selections based on the contents of their screen.

A device owner and a profile owner can set this restriction. When it is set by a device owner, a profile owner on the primary user or by a profile owner of an organization-owned managed profile on the parent profile, it disables the primary user from receiving content suggestions for selections based on the contents of their screen.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_SCREEN_CONTENT can set this restriction using the DevicePolicyManager APIs mentioned below.

The default value is false.

Java documentation for android.os.UserManager.DISALLOW_CONTENT_SUGGESTIONS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to