ShortcutInfo.IsDeclaredInManifest 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 whether a shortcut is static; that is, whether a shortcut is published from AndroidManifest.
public bool IsDeclaredInManifest { [Android.Runtime.Register("isDeclaredInManifest", "()Z", "", ApiSince=25)] get; }
[<get: Android.Runtime.Register("isDeclaredInManifest", "()Z", "", ApiSince=25)>]
member this.IsDeclaredInManifest : bool
Property Value
- Attributes
Remarks
Return whether a shortcut is static; that is, whether a shortcut is published from AndroidManifest.xml. If true
, the shortcut is also #isImmutable()
.
When an app is upgraded and a shortcut is no longer published from AndroidManifest.xml, this will be set to false
. If the shortcut is not pinned, then it'll disappear. However, if it's pinned, it will still be visible, #isEnabled()
will be false
and #isImmutable()
will be true
.
Java documentation for android.content.pm.ShortcutInfo.isDeclaredInManifest()
.
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.