Skip to content

Most visited

Recently visited

navigation

ActivityCompat

public class ActivityCompat
extends ActivityCompat

java.lang.Object
   ↳ android.support.v4.content.ContextCompat
     ↳ android.support.v4.app.ActivityCompat
       ↳ android.support.v13.app.ActivityCompat


Helper for accessing features in Activity introduced after API level 13 in a backwards compatible fashion.

Summary

Public methods

static DragAndDropPermissionsCompat requestDragAndDropPermissions(Activity activity, DragEvent dragEvent)

Create DragAndDropPermissionsCompat object bound to this activity and controlling the access permissions for content URIs associated with the DragEvent.

Inherited methods

From class android.support.v4.app.ActivityCompat
From class android.support.v4.content.ContextCompat
From class java.lang.Object

Public methods

requestDragAndDropPermissions

DragAndDropPermissionsCompat requestDragAndDropPermissions (Activity activity, 
                DragEvent dragEvent)

Create DragAndDropPermissionsCompat object bound to this activity and controlling the access permissions for content URIs associated with the DragEvent.

Parameters
activity Activity
dragEvent DragEvent: Drag event to request permission for
Returns
DragAndDropPermissionsCompat The DragAndDropPermissionsCompat object used to control access to the content URIs. null if no content URIs are associated with the event or if permissions could not be granted.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.