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用于访问在向后兼容的API级别13之后引入的 Activity功能。

Summary

Public methods

static DragAndDropPermissionsCompat requestDragAndDropPermissions(Activity activity, DragEvent dragEvent)

创建 DragAndDropPermissionsCompat绑定到此活动的对象,并控制与 DragEvent关联的内容URI的访问权限。

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)

创建 DragAndDropPermissionsCompat绑定到此活动的对象,并控制与 DragEvent关联的内容URI的访问权限。

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!