StatusBarManager.CanLaunchCaptureContentActivityForNote(Activity) Method

Definition

Checks whether the supplied activity can Activity#startActivityForResult(Intent, int) a system activity that captures content on the screen to take a screenshot.

[Android.Runtime.Register("canLaunchCaptureContentActivityForNote", "(Landroid/app/Activity;)Z", "GetCanLaunchCaptureContentActivityForNote_Landroid_app_Activity_Handler", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE")]
public virtual bool CanLaunchCaptureContentActivityForNote (Android.App.Activity activity);
[<Android.Runtime.Register("canLaunchCaptureContentActivityForNote", "(Landroid/app/Activity;)Z", "GetCanLaunchCaptureContentActivityForNote_Landroid_app_Activity_Handler", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE")>]
abstract member CanLaunchCaptureContentActivityForNote : Android.App.Activity -> bool
override this.CanLaunchCaptureContentActivityForNote : Android.App.Activity -> bool

Parameters

activity
Activity

Calling activity

Returns

true if the activity supports launching the capture content activity for note.

Attributes

Remarks

Checks whether the supplied activity can Activity#startActivityForResult(Intent, int) a system activity that captures content on the screen to take a screenshot.

Note: The result should not be cached.

The system activity displays an editing tool that allows user to edit the screenshot, save it on device, and return the edited screenshot as android.net.Uri to the calling activity. User interaction is required to return the edited screenshot to the calling activity.

When true, callers can use Activity#startActivityForResult(Intent, int) to start start the content capture activity using Intent#ACTION_LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE.

Java documentation for android.app.StatusBarManager.canLaunchCaptureContentActivityForNote(android.app.Activity).

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.

Applies to