Udostępnij za pośrednictwem


ActivityInfo.RequiredDisplayCategory Property

Definition

Specifies the required display category of the activity.

[Android.Runtime.Register("requiredDisplayCategory", ApiSince=34)]
public string? RequiredDisplayCategory { get; set; }
[<Android.Runtime.Register("requiredDisplayCategory", ApiSince=34)>]
member this.RequiredDisplayCategory : string with get, set

Property Value

Attributes

Remarks

Specifies the required display category of the activity. Set from the android.R.attr#requiredDisplayCategory attribute. Upon creation, a display can specify which display categories it supports and one of the category must be present in the <activity> element to allow this activity to run. The default value is null, which indicates the activity does not have a required display category and thus can only run on a display that didn't specify any display categories. Each activity can only specify one required category but a display can support multiple display categories.

This field should be formatted as a Java-language-style free form string(for example, com.google.automotive_entertainment), which may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_') but may only start with letters.

Java documentation for android.content.pm.ActivityInfo.requiredDisplayCategory.

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