最終更新:2018-07-20 (金) 01:18:24 (2106d)  

cordova-plugin-camera
Top / cordova-plugin-camera

https://github.com/apache/cordova-plugin-camera

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/index.html

オブジェクト

  • navigator.camera?

撮影

  • navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);

Camera.sourceType

概要

  • 撮影した写真はBase64でエンコードされた文字列か、ファイルのURIのどちらかで返す。

関連

iOS 10

  • 下記の記述が必要
    NSCameraUsageDescriptionspecifies the reason for your app to access the device's camera.
    NSPhotoLibraryUsageDescriptionspecifies the reason for your app to access the user's photo library.
    NSLocationWhenInUseUsageDescription?specifies the reason for your app to access the user's location information while your app is in use. (Set it if you have CameraUsesGeolocation? preference set to true)
    NSPhotoLibraryAddUsageDescriptionspecifies the reason for your app to get write-only access to the user's photo library (iOS 11)