最終更新:2018-07-20 (金) 01:18:24 (2069d)
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
- 下記の記述が必要
NSCameraUsageDescription specifies the reason for your app to access the device's camera. NSPhotoLibraryUsageDescription specifies 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) NSPhotoLibraryAddUsageDescription specifies the reason for your app to get write-only access to the user's photo library (iOS 11)