Action(Slice) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 slice containing the metadata to be shown on the UI, must be constructed
through the androidx.credentials.provider
Jetpack library;
If constructed manually, the slice
object must
contain the non-null properties of the
androidx.credentials.provider.Action
class populated as slice items
against specific hints as used in the class's toSlice
method,
since the Android System uses this library to parse the slice
and
extract the required attributes
- 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.