CreateEntry(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 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.