ShortcutInfo.Builder.SetLongLived(Boolean) 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 if a shortcut would be valid even if it has been unpublished/invisible by the app (as a dynamic or pinned shortcut).
[Android.Runtime.Register("setLongLived", "(Z)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetLongLived_ZHandler", ApiSince=29)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetLongLived(bool longLived);
[<Android.Runtime.Register("setLongLived", "(Z)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetLongLived_ZHandler", ApiSince=29)>]
abstract member SetLongLived : bool -> Android.Content.PM.ShortcutInfo.Builder
override this.SetLongLived : bool -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- longLived
- Boolean
Returns
- Attributes
Remarks
Sets if a shortcut would be valid even if it has been unpublished/invisible by the app (as a dynamic or pinned shortcut). If it is long lived, it can be cached by various system services even after it has been unpublished as a dynamic shortcut.
Android reference for android.content.pm.ShortcutInfo.Builder.setLongLived.
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.