共用方式為


Settings.ExtraAccountTypes Field

Definition

Activity Extra: Limit available options in launched activity based on the given account types.

[Android.Runtime.Register("EXTRA_ACCOUNT_TYPES")]
public const string ExtraAccountTypes;
[<Android.Runtime.Register("EXTRA_ACCOUNT_TYPES")>]
val mutable ExtraAccountTypes : string

Field Value

Attributes

Remarks

Activity Extra: Limit available options in launched activity based on the given account types.

This can be passed as an extra field in an Activity Intent with one or more account types as a String[]. This field is used by some intents to alter the behavior of the called activity.

Example: The #ACTION_ADD_ACCOUNT intent restricts the account types to the specified list.

Java documentation for android.provider.Settings.EXTRA_ACCOUNT_TYPES.

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