| /* |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| */ |
| |
| module.exports = { |
| DestinationType:{ |
| DATA_URL: 0, // Return base64 encoded string |
| FILE_URI: 1, // Return file uri (content://media/external/images/media/2 for Android) |
| NATIVE_URI: 2 // Return native uri (eg. asset-library://... for iOS) |
| }, |
| EncodingType:{ |
| JPEG: 0, // Return JPEG encoded image |
| PNG: 1 // Return PNG encoded image |
| }, |
| MediaType:{ |
| PICTURE: 0, // allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType |
| VIDEO: 1, // allow selection of video only, ONLY RETURNS URL |
| ALLMEDIA : 2 // allow selection from all media types |
| }, |
| PictureSourceType:{ |
| PHOTOLIBRARY : 0, // Choose image from picture library (same as SAVEDPHOTOALBUM for Android) |
| CAMERA : 1, // Take picture from camera |
| SAVEDPHOTOALBUM : 2 // Choose image from picture library (same as PHOTOLIBRARY for Android) |
| }, |
| PopoverArrowDirection:{ |
| ARROW_UP : 1, // matches iOS UIPopoverArrowDirection constants to specify arrow location on popover |
| ARROW_DOWN : 2, |
| ARROW_LEFT : 4, |
| ARROW_RIGHT : 8, |
| ARROW_ANY : 15 |
| }, |
| Direction:{ |
| BACK: 0, |
| FRONT: 1 |
| } |
| }; |