ShortcutInfo.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 LocusId associated with this shortcut.
[Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetLocusId_Landroid_content_LocusId_Handler", ApiSince=29)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetLocusId(Android.Content.LocusId locusId);
[<Android.Runtime.Register("setLocusId", "(Landroid/content/LocusId;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetLocusId_Landroid_content_LocusId_Handler", ApiSince=29)>]
abstract member SetLocusId : Android.Content.LocusId -> Android.Content.PM.ShortcutInfo.Builder
override this.SetLocusId : Android.Content.LocusId -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- locusId
- LocusId
The non-null identifier used to correlate the shortcut with related device content.
Returns
This builder after the locus identifier is assigned.
- Attributes
Remarks
Sets the LocusId associated with this shortcut. This method should be called when the LocusId is used in other places (such as Notification and ContentCaptureContext) so the device's intelligence services can correlate them.
Android reference for android.content.pm.ShortcutInfo.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.