ShortcutManager.IsRequestPinShortcutSupported 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.
Gets whether this app can request shortcut pinning from the default launcher. This value is false when App Lock is enabled for the app.
public virtual bool IsRequestPinShortcutSupported { [Android.Runtime.Register("isRequestPinShortcutSupported", "()Z", "GetIsRequestPinShortcutSupportedHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isRequestPinShortcutSupported", "()Z", "GetIsRequestPinShortcutSupportedHandler", ApiSince=26)>]
member this.IsRequestPinShortcutSupported : bool
Property Value
The service's current decision on whether this app can request shortcut pinning.
- Attributes
Remarks
Returns true if this app can request shortcut pinning from the default launcher. Returns false when App Lock is enabled for the app.
The return value may change in subsequent calls if the user changes the default launcher app.
Note: See also the support library counterpart androidx.core.content.pm.ShortcutManagerCompat#isRequestPinShortcutSupported( Context), which supports Android versions lower than VERSION_CODES#O using the legacy private intent com.android.launcher.action.INSTALL_SHORTCUT.
Java documentation for android.content.pm.ShortcutManager.isRequestPinShortcutSupported().
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.