Package 

Interface CaptureStrategy

  • All Implemented Interfaces:
    android.os.Parcelable

    @Stable() 
    public interface CaptureStrategy
     implements Parcelable
                        

    拍照策略

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean shouldRequestWriteExternalStoragePermission(Context context) 是否需要申请 WRITE_EXTERNAL_STORAGE 权限
      abstract Uri createImageUri(Context context) 生成图片 Uri
      abstract MediaResource loadResource(Context context, Uri imageUri) 获取拍照结果
      abstract Unit onTakePictureCanceled(Context context, Uri imageUri) 当用户取消拍照时调用
      String createImageName(Context context) 生成图片名
      Bundle getCaptureExtra() 用于为相机设置启动参数 返回值会传递给启动相机的 Intent
      • Methods inherited from class github.leavesczy.matisse.CaptureStrategy

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait