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.
Return TRUE
if the app is running on a device whose default launcher supports
#requestPinShortcut(ShortcutInfo, IntentSender)
.
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
- Attributes
Remarks
Return TRUE
if the app is running on a device whose default launcher supports #requestPinShortcut(ShortcutInfo, IntentSender)
.
The return value may change in subsequent calls if the user changes the default launcher app.
<b>Note:</b> 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.