Most visited

Recently visited

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.

Hooray!