ShortcutInfo.IsImmutable Property
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.
Return if a shortcut is immutable, in which case it cannot be modified with any of
ShortcutManager
APIs.
public bool IsImmutable { [Android.Runtime.Register("isImmutable", "()Z", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("isImmutable", "()Z", "", ApiSince=25)>]
member this.IsImmutable : bool
Property Value
- Attributes
Remarks
Return if a shortcut is immutable, in which case it cannot be modified with any of ShortcutManager
APIs.
All static shortcuts are immutable. When a static shortcut is pinned and is then disabled because it doesn't appear in AndroidManifest.xml for a newer version of the app, #isDeclaredInManifest()
returns false
, but the shortcut is still immutable.
All shortcuts originally published via the ShortcutManager
APIs are all mutable.
Java documentation for android.content.pm.ShortcutInfo.isImmutable()
.
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.