Share via


CreateEntry(Slice) Constructor

Definition

Constructs a CreateEntry to be displayed on the UI.

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

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.CreateEntry 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 a CreateEntry to be displayed on the UI.

Java documentation for android.service.credentials.CreateEntry.CreateEntry(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