Action(Slice) Constructor

Definition

Constructs an action to be displayed on the UI.

[Android.Runtime.Register(".ctor", "(Landroid/app/slice/Slice;)V", "", ApiSince=34)]
public Action (Android.App.Slices.Slice slice);
[<Android.Runtime.Register(".ctor", "(Landroid/app/slice/Slice;)V", "", ApiSince=34)>]
new Android.Service.Credentials.Action : Android.App.Slices.Slice -> Android.Service.Credentials.Action

Parameters

slice
Slice

the display content to be displayed on the UI, along with this action

Attributes

Remarks

Constructs an action to be displayed on the UI.

Actions must be used for any provider related operations, such as opening the provider app, intenting straight into certain app activities like 'manage credentials', top level authentication before displaying any content etc.

See details on usage of Action for various actionable entries in BeginCreateCredentialResponse and BeginGetCredentialResponse.

Java documentation for android.service.credentials.Action.Action(android.app.slice.Slice).

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