DirectAction.Builder.SetLocusId(LocusId) Method
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.
Sets the optional locus id.
[Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/app/DirectAction$Builder;", "", ApiSince=29)]
public Android.App.DirectAction.Builder SetLocusId(Android.Content.LocusId? locusId);
[<Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/app/DirectAction$Builder;", "", ApiSince=29)>]
member this.SetLocusId : Android.Content.LocusId -> Android.App.DirectAction.Builder
Parameters
- locusId
- LocusId
LocusId: The locus id. This value may be null.
Returns
This builder. This value cannot be null.
- Attributes
Remarks
Sets the optional locus id. This is an identifier of the application state from a user perspective. For example, a specific chat in a messaging app.
On Android 10 through Android 17, writing an action with a null locus ID to a parcel throws a Java null-pointer exception.
Android reference for android.app.DirectAction.Builder.setLocusId.
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.