1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public final class [MediaStore](https://developer.android.com/reference/android/provider/MediaStore.html) /// /// Required feature: android-provider-MediaStore #[cfg(any(feature = "all", feature = "android-provider-MediaStore"))] public final class MediaStore extends crate::java::lang::Object { /// <init> pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::provider::MediaStore>> { // class.path == "android/provider/MediaStore", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V" unsafe { let __jni_args = []; let (__jni_class, __jni_method) = __jni_env.require_class_method("android/provider/MediaStore\0", "<init>\0", "()V\0"); __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getMediaScannerUri](https://developer.android.com/reference/android/provider/MediaStore.html#getMediaScannerUri()) /// /// Required features: "android-net-Uri" #[cfg(any(feature = "all", all(feature = "android-net-Uri")))] pub fn get_media_scanner_uri<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>> { // class.path == "android/provider/MediaStore", java.flags == PUBLIC | STATIC, .name == "getMediaScannerUri", .descriptor == "()Landroid/net/Uri;" unsafe { let __jni_args = []; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/MediaStore\0", "getMediaScannerUri\0", "()Landroid/net/Uri;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getVersion](https://developer.android.com/reference/android/provider/MediaStore.html#getVersion(android,%2520content,%2520Context)) /// /// Required features: "android-content-Context", "java-lang-String" #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))] pub fn get_version<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/provider/MediaStore", java.flags == PUBLIC | STATIC, .name == "getVersion", .descriptor == "(Landroid/content/Context;)Ljava/lang/String;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/MediaStore\0", "getVersion\0", "(Landroid/content/Context;)Ljava/lang/String;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getDocumentUri](https://developer.android.com/reference/android/provider/MediaStore.html#getDocumentUri(android,%2520content,%2520Context,%2520android,%2520net,%2520Uri)) /// /// Required features: "android-content-Context", "android-net-Uri" #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-net-Uri")))] pub fn get_document_uri<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>> { // class.path == "android/provider/MediaStore", java.flags == PUBLIC | STATIC, .name == "getDocumentUri", .descriptor == "(Landroid/content/Context;Landroid/net/Uri;)Landroid/net/Uri;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/MediaStore\0", "getDocumentUri\0", "(Landroid/content/Context;Landroid/net/Uri;)Landroid/net/Uri;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// public static final [ACTION_IMAGE_CAPTURE](https://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE) pub const ACTION_IMAGE_CAPTURE : &'static str = "android.media.action.IMAGE_CAPTURE"; /// public static final [ACTION_IMAGE_CAPTURE_SECURE](https://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE_SECURE) pub const ACTION_IMAGE_CAPTURE_SECURE : &'static str = "android.media.action.IMAGE_CAPTURE_SECURE"; /// public static final [ACTION_VIDEO_CAPTURE](https://developer.android.com/reference/android/provider/MediaStore.html#ACTION_VIDEO_CAPTURE) pub const ACTION_VIDEO_CAPTURE : &'static str = "android.media.action.VIDEO_CAPTURE"; /// public static final [AUTHORITY](https://developer.android.com/reference/android/provider/MediaStore.html#AUTHORITY) pub const AUTHORITY : &'static str = "media"; /// public static final [EXTRA_DURATION_LIMIT](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_DURATION_LIMIT) pub const EXTRA_DURATION_LIMIT : &'static str = "android.intent.extra.durationLimit"; /// public static final [EXTRA_FINISH_ON_COMPLETION](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_FINISH_ON_COMPLETION) pub const EXTRA_FINISH_ON_COMPLETION : &'static str = "android.intent.extra.finishOnCompletion"; /// public static final [EXTRA_FULL_SCREEN](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_FULL_SCREEN) pub const EXTRA_FULL_SCREEN : &'static str = "android.intent.extra.fullScreen"; /// public static final [EXTRA_MEDIA_ALBUM](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_ALBUM) pub const EXTRA_MEDIA_ALBUM : &'static str = "android.intent.extra.album"; /// public static final [EXTRA_MEDIA_ARTIST](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_ARTIST) pub const EXTRA_MEDIA_ARTIST : &'static str = "android.intent.extra.artist"; /// public static final [EXTRA_MEDIA_FOCUS](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_FOCUS) pub const EXTRA_MEDIA_FOCUS : &'static str = "android.intent.extra.focus"; /// public static final [EXTRA_MEDIA_GENRE](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_GENRE) pub const EXTRA_MEDIA_GENRE : &'static str = "android.intent.extra.genre"; /// public static final [EXTRA_MEDIA_PLAYLIST](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_PLAYLIST) pub const EXTRA_MEDIA_PLAYLIST : &'static str = "android.intent.extra.playlist"; /// public static final [EXTRA_MEDIA_RADIO_CHANNEL](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_RADIO_CHANNEL) pub const EXTRA_MEDIA_RADIO_CHANNEL : &'static str = "android.intent.extra.radio_channel"; /// public static final [EXTRA_MEDIA_TITLE](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_MEDIA_TITLE) pub const EXTRA_MEDIA_TITLE : &'static str = "android.intent.extra.title"; /// public static final [EXTRA_OUTPUT](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_OUTPUT) pub const EXTRA_OUTPUT : &'static str = "output"; /// public static final [EXTRA_SCREEN_ORIENTATION](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_SCREEN_ORIENTATION) pub const EXTRA_SCREEN_ORIENTATION : &'static str = "android.intent.extra.screenOrientation"; /// public static final [EXTRA_SHOW_ACTION_ICONS](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_SHOW_ACTION_ICONS) pub const EXTRA_SHOW_ACTION_ICONS : &'static str = "android.intent.extra.showActionIcons"; /// public static final [EXTRA_SIZE_LIMIT](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_SIZE_LIMIT) pub const EXTRA_SIZE_LIMIT : &'static str = "android.intent.extra.sizeLimit"; /// public static final [EXTRA_VIDEO_QUALITY](https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_VIDEO_QUALITY) pub const EXTRA_VIDEO_QUALITY : &'static str = "android.intent.extra.videoQuality"; /// public static final [INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH) pub const INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH : &'static str = "android.media.action.MEDIA_PLAY_FROM_SEARCH"; /// public static final [INTENT_ACTION_MEDIA_SEARCH](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MEDIA_SEARCH) pub const INTENT_ACTION_MEDIA_SEARCH : &'static str = "android.intent.action.MEDIA_SEARCH"; /// public static final [INTENT_ACTION_MUSIC_PLAYER](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_MUSIC_PLAYER) #[deprecated] pub const INTENT_ACTION_MUSIC_PLAYER : &'static str = "android.intent.action.MUSIC_PLAYER"; /// public static final [INTENT_ACTION_STILL_IMAGE_CAMERA](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_STILL_IMAGE_CAMERA) pub const INTENT_ACTION_STILL_IMAGE_CAMERA : &'static str = "android.media.action.STILL_IMAGE_CAMERA"; /// public static final [INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE) pub const INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE : &'static str = "android.media.action.STILL_IMAGE_CAMERA_SECURE"; /// public static final [INTENT_ACTION_TEXT_OPEN_FROM_SEARCH](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_TEXT_OPEN_FROM_SEARCH) pub const INTENT_ACTION_TEXT_OPEN_FROM_SEARCH : &'static str = "android.media.action.TEXT_OPEN_FROM_SEARCH"; /// public static final [INTENT_ACTION_VIDEO_CAMERA](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_VIDEO_CAMERA) pub const INTENT_ACTION_VIDEO_CAMERA : &'static str = "android.media.action.VIDEO_CAMERA"; /// public static final [INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH](https://developer.android.com/reference/android/provider/MediaStore.html#INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH) pub const INTENT_ACTION_VIDEO_PLAY_FROM_SEARCH : &'static str = "android.media.action.VIDEO_PLAY_FROM_SEARCH"; /// public static final [MEDIA_IGNORE_FILENAME](https://developer.android.com/reference/android/provider/MediaStore.html#MEDIA_IGNORE_FILENAME) pub const MEDIA_IGNORE_FILENAME : &'static str = ".nomedia"; /// public static final [MEDIA_SCANNER_VOLUME](https://developer.android.com/reference/android/provider/MediaStore.html#MEDIA_SCANNER_VOLUME) pub const MEDIA_SCANNER_VOLUME : &'static str = "volume"; /// public static final [META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE](https://developer.android.com/reference/android/provider/MediaStore.html#META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE) pub const META_DATA_STILL_IMAGE_CAMERA_PREWARM_SERVICE : &'static str = "android.media.still_image_camera_preview_service"; /// public static final [UNKNOWN_STRING](https://developer.android.com/reference/android/provider/MediaStore.html#UNKNOWN_STRING) pub const UNKNOWN_STRING : &'static str = "<unknown>"; } }