setLongLived

@NonNull
open fun setLongLived(longLived: Boolean): @NonNull ShortcutInfoCompat.Builder(source)

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.


@NonNull
open fun setLongLived(): @NonNull ShortcutInfoCompat.Builder(source)

Deprecated

Use {@ink #setLongLived(boolean)) instead.