NotificationManager.CanUseFullScreenIntent Method
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.
Returns whether the calling app can send fullscreen intents.
[Android.Runtime.Register("canUseFullScreenIntent", "()Z", "GetCanUseFullScreenIntentHandler", ApiSince=34)]
public virtual bool CanUseFullScreenIntent ();
[<Android.Runtime.Register("canUseFullScreenIntent", "()Z", "GetCanUseFullScreenIntentHandler", ApiSince=34)>]
abstract member CanUseFullScreenIntent : unit -> bool
override this.CanUseFullScreenIntent : unit -> bool
Returns
- Attributes
Remarks
Returns whether the calling app can send fullscreen intents.
From Android android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE
, apps may not have permission to use android.Manifest.permission#USE_FULL_SCREEN_INTENT
. If permission is denied, notification will show up as an expanded heads up notification on lockscreen.
To request access, add the android.Manifest.permission#USE_FULL_SCREEN_INTENT
permission to your manifest, and use android.provider.Settings#ACTION_MANAGE_APP_USE_FULL_SCREEN_INTENT
.
Java documentation for android.app.NotificationManager.canUseFullScreenIntent()
.
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.