1{"name":"expo-image-picker","kind":1,"kindString":"Project","originalName":"","children":[{"name":"MediaTypeOptions","kind":8,"kindString":"Enumeration","children":[{"name":"All","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Images and videos."}]},"type":{"type":"literal","value":"All"}},{"name":"Images","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Only images."}]},"type":{"type":"literal","value":"Images"}},{"name":"Videos","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Only videos."}]},"type":{"type":"literal","value":"Videos"}}]},{"name":"PermissionStatus","kind":8,"kindString":"Enumeration","children":[{"name":"DENIED","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"User has denied the permission."}]},"type":{"type":"literal","value":"denied"}},{"name":"GRANTED","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"User has granted the permission."}]},"type":{"type":"literal","value":"granted"}},{"name":"UNDETERMINED","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"User hasn't granted or denied the permission yet."}]},"type":{"type":"literal","value":"undetermined"}}]},{"name":"UIImagePickerControllerQualityType","kind":8,"kindString":"Enumeration","children":[{"name":"High","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Highest available resolution."}]},"type":{"type":"literal","value":0}},{"name":"IFrame1280x720","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"1280 × 720"}]},"type":{"type":"literal","value":4}},{"name":"IFrame960x540","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"960 × 540"}]},"type":{"type":"literal","value":5}},{"name":"Low","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Depends on the device."}]},"type":{"type":"literal","value":2}},{"name":"Medium","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Depends on the device."}]},"type":{"type":"literal","value":1}},{"name":"VGA640x480","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"640 × 480"}]},"type":{"type":"literal","value":3}}]},{"name":"UIImagePickerPresentationStyle","kind":8,"kindString":"Enumeration","comment":{"summary":[{"kind":"text","text":"Picker presentation style. Its values are directly mapped to the ["},{"kind":"code","text":"`UIModalPresentationStyle`"},{"kind":"text","text":"](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621355-modalpresentationstyle)."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"children":[{"name":"AUTOMATIC","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"The default presentation style chosen by the system.\nOn older iOS versions, falls back to "},{"kind":"code","text":"`WebBrowserPresentationStyle.FullScreen`"},{"kind":"text","text":"."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios 13+"}]}]},"type":{"type":"literal","value":"automatic"}},{"name":"Automatic","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.AUTOMATIC`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"automatic"}},{"name":"CURRENT_CONTEXT","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style where the picker is displayed over the app's content."}]},"type":{"type":"literal","value":"currentContext"}},{"name":"CurrentContext","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.CURRENT_CONTEXT`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"currentContext"}},{"name":"FORM_SHEET","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style that displays the picker centered in the screen."}]},"type":{"type":"literal","value":"formSheet"}},{"name":"FULL_SCREEN","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style in which the presented picker covers the screen."}]},"type":{"type":"literal","value":"fullScreen"}},{"name":"FormSheet","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.FORM_SHEET`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"formSheet"}},{"name":"FullScreen","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.FULL_SCREEN`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"fullScreen"}},{"name":"OVER_CURRENT_CONTEXT","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style where the picker is displayed over the app's content."}]},"type":{"type":"literal","value":"overCurrentContext"}},{"name":"OVER_FULL_SCREEN","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style in which the picker view covers the screen."}]},"type":{"type":"literal","value":"overFullScreen"}},{"name":"OverCurrentContext","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.OVER_CURRENT_CONTEXT`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"overCurrentContext"}},{"name":"OverFullScreen","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.OVER_FULL_SCREEN`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"overFullScreen"}},{"name":"PAGE_SHEET","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style that partially covers the underlying content."}]},"type":{"type":"literal","value":"pageSheet"}},{"name":"POPOVER","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"A presentation style where the picker is displayed in a popover view."}]},"type":{"type":"literal","value":"popover"}},{"name":"PageSheet","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.PAGE_SHEET`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"pageSheet"}},{"name":"Popover","kind":16,"kindString":"Enumeration Member","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`UIImagePickerPresentationStyle.POPOVER`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"literal","value":"popover"}}]},{"name":"VideoExportPreset","kind":8,"kindString":"Enumeration","children":[{"name":"H264_1280x720","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __1280 × 720__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":6}},{"name":"H264_1920x1080","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __1920 × 1080__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":7}},{"name":"H264_3840x2160","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __3840 × 2160__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":8}},{"name":"H264_640x480","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __640 × 480__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":4}},{"name":"H264_960x540","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __960 × 540__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":5}},{"name":"HEVC_1920x1080","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __1920 × 1080__ •\nVideo compression: __HEVC__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":9}},{"name":"HEVC_3840x2160","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __3840 × 2160__ •\nVideo compression: __HEVC__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":10}},{"name":"HighestQuality","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __Depends on the device__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":3}},{"name":"LowQuality","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __Depends on the device__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":1}},{"name":"MediumQuality","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __Depends on the device__ •\nVideo compression: __H.264__ •\nAudio compression: __AAC__"}]},"type":{"type":"literal","value":2}},{"name":"Passthrough","kind":16,"kindString":"Enumeration Member","comment":{"summary":[{"kind":"text","text":"Resolution: __Unchanged__ •\nVideo compression: __None__ •\nAudio compression: __None__"}]},"type":{"type":"literal","value":0}}]},{"name":"PermissionResponse","kind":256,"kindString":"Interface","comment":{"summary":[{"kind":"text","text":"An object obtained by "},{"kind":"code","text":"`getPermissionsAsync`"},{"kind":"text","text":" and "},{"kind":"code","text":"`requestPermissionsAsync`"},{"kind":"text","text":" functions."}]},"children":[{"name":"canAskAgain","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Indicates if user can be asked again for specific permission.\nIf not, one should be directed to the Settings app\nin order to enable/disable the permission."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"expires","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Determines time when the permission expires."}]},"type":{"type":"reference","name":"PermissionExpiration"}},{"name":"granted","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"A convenience boolean that indicates if the permission is granted."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"status","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Determines the status of the permission."}]},"type":{"type":"reference","name":"PermissionStatus"}}]},{"name":"CameraPermissionResponse","kind":4194304,"kindString":"Type alias","comment":{"summary":[{"kind":"text","text":"Alias for "},{"kind":"code","text":"`PermissionResponse`"},{"kind":"text","text":" type exported by "},{"kind":"code","text":"`expo-modules-core`"},{"kind":"text","text":"."}]},"type":{"type":"reference","name":"PermissionResponse"}},{"name":"CameraRollPermissionResponse","kind":4194304,"kindString":"Type alias","comment":{"summary":[{"kind":"text","text":"An alias for the "},{"kind":"code","text":"`MediaLibraryPermissionResponse`"},{"kind":"text","text":" object."}],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`ImagePicker.MediaLibraryPermissionResponse`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"reference","name":"MediaLibraryPermissionResponse"}},{"name":"ExpandImagePickerResult","kind":4194304,"kindString":"Type alias","typeParameters":[{"name":"T","kind":131072,"kindString":"Type parameter","type":{"type":"union","types":[{"type":"reference","name":"ImagePickerOptions"},{"type":"reference","name":"OpenFileBrowserOptions"}]}}],"type":{"type":"conditional","checkType":{"type":"reference","name":"T"},"extendsType":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"allowsMultipleSelection","kind":1024,"kindString":"Property","type":{"type":"literal","value":true}}]}},"trueType":{"type":"reference","name":"ImagePickerMultipleResult"},"falseType":{"type":"reference","name":"ImagePickerResult"}}},{"name":"ImageInfo","kind":4194304,"kindString":"Type alias","type":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"assetId","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The unique ID that represents the picked image or video, if picked from the library. It can be used\nby [expo-media-library](./media-library) to manage the picked asset.\n\n> This might be "},{"kind":"code","text":"`null`"},{"kind":"text","text":" when the ID is unavailable or the user gave limited permission to access the media library.\n> On Android, the ID is unavailable when the user selects a photo by directly browsing file system."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios"}]},{"tag":"@platform","content":[{"kind":"text","text":"android"}]}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}},{"name":"base64","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Included if the "},{"kind":"code","text":"`base64`"},{"kind":"text","text":" option is truthy, and is a Base64-encoded string of the selected\nimage's JPEG data. If you prepend this with "},{"kind":"code","text":"`'data:image/jpeg;base64,'`"},{"kind":"text","text":" to create a data URI,\nyou can use it as the source of an "},{"kind":"code","text":"`Image`"},{"kind":"text","text":" element; for example:\n"},{"kind":"code","text":"```ts\n<Image\n source={{ uri: 'data:image/jpeg;base64,' + launchCameraResult.base64 }}\n style={{ width: 200, height: 200 }}\n/>\n```"}]},"type":{"type":"intrinsic","name":"string"}},{"name":"cancelled","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Boolean flag which shows if request was cancelled. If asset data have been returned this should\nalways be "},{"kind":"code","text":"`false`"},{"kind":"text","text":"."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"duration","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Length of the video in milliseconds."}]},"type":{"type":"intrinsic","name":"number"}},{"name":"exif","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The "},{"kind":"code","text":"`exif`"},{"kind":"text","text":" field is included if the "},{"kind":"code","text":"`exif`"},{"kind":"text","text":" option is truthy, and is an object containing the\nimage's EXIF data. The names of this object's properties are EXIF tags and the values are the\nrespective EXIF values for those tags."}]},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"string"},{"type":"intrinsic","name":"any"}],"name":"Record","qualifiedName":"Record","package":"typescript"}},{"name":"fileName","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Preferred filename to use when saving this item. This might be "},{"kind":"code","text":"`null`"},{"kind":"text","text":" when the name is unavailable\nor user gave limited permission to access the media library."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"type":{"type":"union","types":[{"type":"intrinsic","name":"string"},{"type":"literal","value":null}]}},{"name":"fileSize","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"File size of the picked image or video, in bytes."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"type":{"type":"intrinsic","name":"number"}},{"name":"height","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Height of the image or video."}]},"type":{"type":"intrinsic","name":"number"}},{"name":"type","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The type of the asset."}]},"type":{"type":"union","types":[{"type":"literal","value":"image"},{"type":"literal","value":"video"}]}},{"name":"uri","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"URI to the local image or video file (usable as the source of an "},{"kind":"code","text":"`Image`"},{"kind":"text","text":" element, in the case of\nan image) and "},{"kind":"code","text":"`width`"},{"kind":"text","text":" and "},{"kind":"code","text":"`height`"},{"kind":"text","text":" specify the dimensions of the media."}]},"type":{"type":"intrinsic","name":"string"}},{"name":"width","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Width of the image or video."}]},"type":{"type":"intrinsic","name":"number"}}]}}},{"name":"ImagePickerCancelledResult","kind":4194304,"kindString":"Type alias","comment":{"summary":[{"kind":"text","text":"An object returned when the pick action has been cancelled by the user."}]},"type":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"cancelled","kind":1024,"kindString":"Property","type":{"type":"literal","value":true}}]}}},{"name":"ImagePickerErrorResult","kind":4194304,"kindString":"Type alias","type":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"code","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"The error code."}]},"type":{"type":"intrinsic","name":"string"}},{"name":"exception","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The exception which caused the error."}]},"type":{"type":"intrinsic","name":"string"}},{"name":"message","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"The error message."}]},"type":{"type":"intrinsic","name":"string"}}]}}},{"name":"ImagePickerMultipleResult","kind":4194304,"kindString":"Type alias","type":{"type":"union","types":[{"type":"reference","name":"ImagePickerCancelledResult"},{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"cancelled","kind":1024,"kindString":"Property","type":{"type":"literal","value":false}},{"name":"selected","kind":1024,"kindString":"Property","type":{"type":"array","elementType":{"type":"reference","name":"ImageInfo"}}}]}}]}},{"name":"ImagePickerOptions","kind":4194304,"kindString":"Type alias","type":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"allowsEditing","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether to show a UI to edit the image after it is picked. On Android the user can crop and\nrotate the image and on iOS simply crop it.\n\n> Cropping multiple images is not supported - this option is mutually exclusive with "},{"kind":"code","text":"`allowsMultipleSelection`"},{"kind":"text","text":".\n> On iOS, this option is ignored if "},{"kind":"code","text":"`allowsMultipleSelection`"},{"kind":"text","text":" is enabled."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"false"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios"}]},{"tag":"@platform","content":[{"kind":"text","text":"android"}]}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"allowsMultipleSelection","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether or not to allow selecting multiple media files at once.\n\n> Cropping multiple images is not supported - this option is mutually exclusive with "},{"kind":"code","text":"`allowsEditing`"},{"kind":"text","text":".\n> If this option is enabled, then "},{"kind":"code","text":"`allowsEditing`"},{"kind":"text","text":" is ignored."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"false"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios 14+"}]},{"tag":"@platform","content":[{"kind":"text","text":"android"}]},{"tag":"@platform","content":[{"kind":"text","text":"web"}]}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"aspect","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An array with two entries "},{"kind":"code","text":"`[x, y]`"},{"kind":"text","text":" specifying the aspect ratio to maintain if the user is\nallowed to edit the image (by passing "},{"kind":"code","text":"`allowsEditing: true`"},{"kind":"text","text":"). This is only applicable on\nAndroid, since on iOS the crop rectangle is always a square."}]},"type":{"type":"tuple","elements":[{"type":"intrinsic","name":"number"},{"type":"intrinsic","name":"number"}]}},{"name":"base64","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether to also include the image data in Base64 format."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"exif","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether to also include the EXIF data for the image. On iOS the EXIF data does not include GPS\ntags in the camera case."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"mediaTypes","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Choose what type of media to pick."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"ImagePicker.MediaTypeOptions.Images"}]}]},"type":{"type":"reference","name":"MediaTypeOptions"}},{"name":"orderedSelection","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Whether to display number badges when assets are selected. The badges are numbered\nin selection order. Assets are then returned in the exact same order they were selected.\n\n> Assets should be returned in the selection order regardless of this option,\n> but there is no guarantee that it is always true when this option is disabled."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios 15+"}]},{"tag":"@default","content":[{"kind":"text","text":"false"}]}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"presentationStyle","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Choose [presentation style](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621355-modalpresentationstyle?language=objc)\nto customize view during taking photo/video."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"ImagePicker.UIImagePickerPresentationStyle.Automatic"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"type":{"type":"reference","name":"UIImagePickerPresentationStyle"}},{"name":"quality","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Specify the quality of compression, from "},{"kind":"code","text":"`0`"},{"kind":"text","text":" to "},{"kind":"code","text":"`1`"},{"kind":"text","text":". "},{"kind":"code","text":"`0`"},{"kind":"text","text":" means compress for small size,\n"},{"kind":"code","text":"`1`"},{"kind":"text","text":" means compress for maximum quality.\n> Note: If the selected image has been compressed before, the size of the output file may be\n> bigger than the size of the original image.\n\n> Note: On iOS, if a "},{"kind":"code","text":"`.bmp`"},{"kind":"text","text":" or "},{"kind":"code","text":"`.png`"},{"kind":"text","text":" image is selected from the library, this option is ignored."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"0.2"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios"}]},{"tag":"@platform","content":[{"kind":"text","text":"android"}]}]},"type":{"type":"intrinsic","name":"number"}},{"name":"selectionLimit","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"The maximum number of items that user can select. Applicable when "},{"kind":"code","text":"`allowsMultipleSelection`"},{"kind":"text","text":" is enabled.\nSetting the value to "},{"kind":"code","text":"`0`"},{"kind":"text","text":" sets the selection limit to the maximum that the system supports."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios 14+"}]},{"tag":"@default","content":[{"kind":"text","text":"0"}]}]},"type":{"type":"intrinsic","name":"number"}},{"name":"videoExportPreset","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Specify preset which will be used to compress selected video."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"ImagePicker.VideoExportPreset.Passthrough"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios 11+"}]},{"tag":"@deprecated","content":[{"kind":"text","text":"See ["},{"kind":"code","text":"`videoExportPreset`"},{"kind":"text","text":"](https://developer.apple.com/documentation/uikit/uiimagepickercontroller/2890964-videoexportpreset?language=objc)\nin Apple documentation."}]}]},"type":{"type":"reference","name":"VideoExportPreset"}},{"name":"videoMaxDuration","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Maximum duration, in seconds, for video recording. Setting this to "},{"kind":"code","text":"`0`"},{"kind":"text","text":" disables the limit.\nDefaults to "},{"kind":"code","text":"`0`"},{"kind":"text","text":" (no limit).\n- **On iOS**, when "},{"kind":"code","text":"`allowsEditing`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`true`"},{"kind":"text","text":", maximum duration is limited to 10 minutes.\n This limit is applied automatically, if "},{"kind":"code","text":"`0`"},{"kind":"text","text":" or no value is specified.\n- **On Android**, effect of this option depends on support of installed camera app.\n- **On Web** this option has no effect - the limit is browser-dependant."}]},"type":{"type":"intrinsic","name":"number"}},{"name":"videoQuality","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"Specify the quality of recorded videos. Defaults to the highest quality available for the device."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"ImagePicker.UIImagePickerControllerQualityType.High"}]},{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"type":{"type":"reference","name":"UIImagePickerControllerQualityType"}}]}}},{"name":"ImagePickerResult","kind":4194304,"kindString":"Type alias","type":{"type":"union","types":[{"type":"reference","name":"ImagePickerCancelledResult"},{"type":"reference","name":"ImageInfo"}]}},{"name":"MediaLibraryPermissionResponse","kind":4194304,"kindString":"Type alias","comment":{"summary":[{"kind":"text","text":"Extends "},{"kind":"code","text":"`PermissionResponse`"},{"kind":"text","text":" type exported by "},{"kind":"code","text":"`expo-modules-core`"},{"kind":"text","text":" and contains additional iOS-specific field."}]},"type":{"type":"intersection","types":[{"type":"reference","name":"PermissionResponse"},{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"accessPrivileges","kind":1024,"kindString":"Property","flags":{"isOptional":true},"comment":{"summary":[],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"ios"}]}]},"type":{"type":"union","types":[{"type":"literal","value":"all"},{"type":"literal","value":"limited"},{"type":"literal","value":"none"}]}}]}}]}},{"name":"OpenFileBrowserOptions","kind":4194304,"kindString":"Type alias","type":{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"allowsMultipleSelection","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Whether or not to allow selecting multiple media files at once."}],"blockTags":[{"tag":"@platform","content":[{"kind":"text","text":"web"}]}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"base64","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Whether to also include the image data in Base64 format."}]},"type":{"type":"intrinsic","name":"boolean"}},{"name":"capture","kind":1024,"kindString":"Property","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"}},{"name":"mediaTypes","kind":1024,"kindString":"Property","comment":{"summary":[{"kind":"text","text":"Choose what type of media to pick."}],"blockTags":[{"tag":"@default","content":[{"kind":"text","text":"ImagePicker.MediaTypeOptions.Images"}]}]},"type":{"type":"reference","name":"MediaTypeOptions"}}]}}},{"name":"PermissionExpiration","kind":4194304,"kindString":"Type alias","comment":{"summary":[{"kind":"text","text":"Permission expiration time. Currently, all permissions are granted permamently."}]},"type":{"type":"union","types":[{"type":"literal","value":"never"},{"type":"intrinsic","name":"number"}]}},{"name":"PermissionHookOptions","kind":4194304,"kindString":"Type alias","typeParameters":[{"name":"Options","kind":131072,"kindString":"Type parameter","type":{"type":"intrinsic","name":"object"}}],"type":{"type":"intersection","types":[{"type":"reference","name":"PermissionHookBehavior"},{"type":"reference","name":"Options"}]}},{"name":"getCameraPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"getCameraPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Checks user's permissions for accessing camera."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise that fulfills with an object of type [CameraPermissionResponse](#camerarollpermissionresponse)."}]}]},"type":{"type":"reference","typeArguments":[{"type":"reference","name":"CameraPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"getCameraRollPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"getCameraRollPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`getMediaLibraryPermissionsAsync()`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"getMediaLibraryPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"getMediaLibraryPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Checks user's permissions for accessing photos."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise that fulfills with an object of type [MediaLibraryPermissionResponse](#medialibrarypermissionresponse)."}]}]},"parameters":[{"name":"writeOnly","kind":32768,"kindString":"Parameter","comment":{"summary":[{"kind":"text","text":"Whether to request write or read and write permissions. Defaults to "},{"kind":"code","text":"`false`"}]},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"getPendingResultAsync","kind":64,"kindString":"Function","signatures":[{"name":"getPendingResultAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Android system sometimes kills the "},{"kind":"code","text":"`MainActivity`"},{"kind":"text","text":" after the "},{"kind":"code","text":"`ImagePicker`"},{"kind":"text","text":" finishes. When this\nhappens, we lost the data selected from the "},{"kind":"code","text":"`ImagePicker`"},{"kind":"text","text":". However, you can retrieve the lost\ndata by calling "},{"kind":"code","text":"`getPendingResultAsync`"},{"kind":"text","text":". You can test this functionality by turning on\n"},{"kind":"code","text":"`Don't keep activities`"},{"kind":"text","text":" in the developer options."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"- **On Android:** a promise that resolves to an array of objects of exactly same type as in\n"},{"kind":"code","text":"`ImagePicker.launchImageLibraryAsync`"},{"kind":"text","text":" or "},{"kind":"code","text":"`ImagePicker.launchCameraAsync`"},{"kind":"text","text":" if the "},{"kind":"code","text":"`ImagePicker`"},{"kind":"text","text":"\nfinished successfully. Otherwise, to the array of ["},{"kind":"code","text":"`ImagePickerErrorResult`"},{"kind":"text","text":"](#imagepickerimagepickererrorresult).\n- **On other platforms:** an empty array."}]}]},"type":{"type":"reference","typeArguments":[{"type":"array","elementType":{"type":"union","types":[{"type":"reference","name":"ImagePickerResult"},{"type":"reference","name":"ImagePickerErrorResult"}]}}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"launchCameraAsync","kind":64,"kindString":"Function","signatures":[{"name":"launchCameraAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Display the system UI for taking a photo with the camera. Requires "},{"kind":"code","text":"`Permissions.CAMERA`"},{"kind":"text","text":".\nOn Android and iOS 10 "},{"kind":"code","text":"`Permissions.CAMERA_ROLL`"},{"kind":"text","text":" is also required. On mobile web, this must be\ncalled immediately in a user interaction like a button press, otherwise the browser will block\nthe request without a warning.\n> **Note:** Make sure that you handle "},{"kind":"code","text":"`MainActivity`"},{"kind":"text","text":" destruction on **Android**. See [ImagePicker.getPendingResultAsync](#imagepickergetpendingresultasync).\n> **Notes for Web:** The system UI can only be shown after user activation (e.g. a "},{"kind":"code","text":"`Button`"},{"kind":"text","text":" press).\nTherefore, calling "},{"kind":"code","text":"`launchCameraAsync`"},{"kind":"text","text":" in "},{"kind":"code","text":"`componentDidMount`"},{"kind":"text","text":", for example, will **not** work as\nintended. The "},{"kind":"code","text":"`cancelled`"},{"kind":"text","text":" event will not be returned in the browser due to platform restrictions\nand inconsistencies across browsers."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"If the user cancelled the action, the method returns "},{"kind":"code","text":"`{ cancelled: true }`"},{"kind":"text","text":". Otherwise,\nthis method returns information about the selected media item. When the chosen item is an image,\nthis method returns "},{"kind":"code","text":"`{ cancelled: false, type: 'image', uri, width, height, exif, base64 }`"},{"kind":"text","text":";\nwhen the item is a video, this method returns "},{"kind":"code","text":"`{ cancelled: false, type: 'video', uri, width, height, duration }`"},{"kind":"text","text":"."}]}]},"parameters":[{"name":"options","kind":32768,"kindString":"Parameter","comment":{"summary":[{"kind":"text","text":"An "},{"kind":"code","text":"`ImagePickerOptions`"},{"kind":"text","text":" object."}]},"type":{"type":"reference","name":"ImagePickerOptions"},"defaultValue":"{}"}],"type":{"type":"reference","typeArguments":[{"type":"reference","name":"ImagePickerResult"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"launchImageLibraryAsync","kind":64,"kindString":"Function","signatures":[{"name":"launchImageLibraryAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Display the system UI for choosing an image or a video from the phone's library.\nRequires "},{"kind":"code","text":"`Permissions.MEDIA_LIBRARY`"},{"kind":"text","text":" on iOS 10 only. On mobile web, this must be called\nimmediately in a user interaction like a button press, otherwise the browser will block the\nrequest without a warning.\n**Animated GIFs support** If the selected image is an animated GIF, the result image will be an\nanimated GIF too if and only if "},{"kind":"code","text":"`quality`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`undefined`"},{"kind":"text","text":" and "},{"kind":"code","text":"`allowsEditing`"},{"kind":"text","text":" is set to "},{"kind":"code","text":"`false`"},{"kind":"text","text":".\nOtherwise compression and/or cropper will pick the first frame of the GIF and return it as the\nresult (on Android the result will be a PNG, on iOS — GIF).\n> **Notes for Web:** The system UI can only be shown after user activation (e.g. a "},{"kind":"code","text":"`Button`"},{"kind":"text","text":" press).\nTherefore, calling "},{"kind":"code","text":"`launchImageLibraryAsync`"},{"kind":"text","text":" in "},{"kind":"code","text":"`componentDidMount`"},{"kind":"text","text":", for example, will **not**\nwork as intended. The "},{"kind":"code","text":"`cancelled`"},{"kind":"text","text":" event will not be returned in the browser due to platform\nrestrictions and inconsistencies across browsers."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"If the user cancelled the action, the method returns "},{"kind":"code","text":"`{ cancelled: true }`"},{"kind":"text","text":". Otherwise,\nthis method returns information about the selected media item. When the chosen item is an image,\nthis method returns "},{"kind":"code","text":"`{ cancelled: false, type: 'image', uri, width, height, exif, base64 }`"},{"kind":"text","text":";\nwhen the item is a video, this method returns "},{"kind":"code","text":"`{ cancelled: false, type: 'video', uri, width, height, duration }`"},{"kind":"text","text":"."}]}]},"typeParameter":[{"name":"T","kind":131072,"kindString":"Type parameter","type":{"type":"reference","name":"ImagePickerOptions"}}],"parameters":[{"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"summary":[{"kind":"text","text":"An object extended by ["},{"kind":"code","text":"`ImagePickerOptions`"},{"kind":"text","text":"](#imagepickeroptions)."}]},"type":{"type":"reference","name":"T"}}],"type":{"type":"reference","typeArguments":[{"type":"reference","typeArguments":[{"type":"reference","name":"T"}],"name":"ExpandImagePickerResult"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"requestCameraPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"requestCameraPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Asks the user to grant permissions for accessing camera. This does nothing on web because the\nbrowser camera is not used."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise that fulfills with an object of type [CameraPermissionResponse](#camerarollpermissionresponse)."}]}]},"type":{"type":"reference","typeArguments":[{"type":"reference","name":"CameraPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"requestCameraRollPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"requestCameraRollPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[],"blockTags":[{"tag":"@deprecated","content":[{"kind":"text","text":"Use "},{"kind":"code","text":"`requestMediaLibraryPermissionsAsync()`"},{"kind":"text","text":" instead."}]}]},"type":{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"requestMediaLibraryPermissionsAsync","kind":64,"kindString":"Function","signatures":[{"name":"requestMediaLibraryPermissionsAsync","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Asks the user to grant permissions for accessing user's photo. This method does nothing on web."}],"blockTags":[{"tag":"@returns","content":[{"kind":"text","text":"A promise that fulfills with an object of type [MediaLibraryPermissionResponse](#medialibrarypermissionresponse)."}]}]},"parameters":[{"name":"writeOnly","kind":32768,"kindString":"Parameter","comment":{"summary":[{"kind":"text","text":"Whether to request write or read and write permissions. Defaults to "},{"kind":"code","text":"`false`"}]},"type":{"type":"intrinsic","name":"boolean"},"defaultValue":"false"}],"type":{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"Promise","qualifiedName":"Promise","package":"typescript"}}]},{"name":"useCameraPermissions","kind":64,"kindString":"Function","signatures":[{"name":"useCameraPermissions","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Check or request permissions to access the camera.\nThis uses both "},{"kind":"code","text":"`requestCameraPermissionsAsync`"},{"kind":"text","text":" and "},{"kind":"code","text":"`getCameraPermissionsAsync`"},{"kind":"text","text":" to interact with the permissions."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst [status, requestPermission] = ImagePicker.useCameraPermissions();\n```"}]}]},"parameters":[{"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","typeArguments":[{"type":"intrinsic","name":"object"}],"name":"PermissionHookOptions"}}],"type":{"type":"tuple","elements":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","name":"PermissionResponse"}]},{"type":"reference","typeArguments":[{"type":"reference","name":"PermissionResponse"}],"name":"RequestPermissionMethod"},{"type":"reference","typeArguments":[{"type":"reference","name":"PermissionResponse"}],"name":"GetPermissionMethod"}]}}]},{"name":"useMediaLibraryPermissions","kind":64,"kindString":"Function","signatures":[{"name":"useMediaLibraryPermissions","kind":4096,"kindString":"Call signature","comment":{"summary":[{"kind":"text","text":"Check or request permissions to access the media library.\nThis uses both "},{"kind":"code","text":"`requestMediaLibraryPermissionsAsync`"},{"kind":"text","text":" and "},{"kind":"code","text":"`getMediaLibraryPermissionsAsync`"},{"kind":"text","text":" to interact with the permissions."}],"blockTags":[{"tag":"@example","content":[{"kind":"code","text":"```ts\nconst [status, requestPermission] = ImagePicker.useMediaLibraryPermissions();\n```"}]}]},"parameters":[{"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","typeArguments":[{"type":"reflection","declaration":{"name":"__type","kind":65536,"kindString":"Type literal","children":[{"name":"writeOnly","kind":1024,"kindString":"Property","flags":{"isOptional":true},"type":{"type":"intrinsic","name":"boolean"}}]}}],"name":"PermissionHookOptions"}}],"type":{"type":"tuple","elements":[{"type":"union","types":[{"type":"literal","value":null},{"type":"reference","name":"MediaLibraryPermissionResponse"}]},{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"RequestPermissionMethod"},{"type":"reference","typeArguments":[{"type":"reference","name":"MediaLibraryPermissionResponse"}],"name":"GetPermissionMethod"}]}}]}]}