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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public final class [RemoteInput](https://developer.android.com/reference/android/app/RemoteInput.html) /// /// Required feature: android-app-RemoteInput #[cfg(any(feature = "all", feature = "android-app-RemoteInput"))] public final class RemoteInput extends crate::java::lang::Object, implements crate::android::os::Parcelable { // // Not emitting: Non-public method // /// <init> // /// // /// Required features: "android-os-Parcel" // #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))] // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::app::RemoteInput>> { // // class.path == "android/app/RemoteInput", java.flags == (empty), .name == "<init>", .descriptor == "(Landroid/os/Parcel;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "<init>\0", "(Landroid/os/Parcel;)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [getResultKey](https://developer.android.com/reference/android/app/RemoteInput.html#getResultKey()) /// /// Required features: "java-lang-String" #[cfg(any(feature = "all", all(feature = "java-lang-String")))] pub fn get_result_key<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getResultKey", .descriptor == "()Ljava/lang/String;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getResultKey\0", "()Ljava/lang/String;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getLabel](https://developer.android.com/reference/android/app/RemoteInput.html#getLabel()) /// /// Required features: "java-lang-CharSequence" #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))] pub fn get_label<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getLabel", .descriptor == "()Ljava/lang/CharSequence;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getLabel\0", "()Ljava/lang/CharSequence;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Returning arrays of objects not yet supported // /// [getChoices](https://developer.android.com/reference/android/app/RemoteInput.html#getChoices()) // /// // /// Required features: "java-lang-CharSequence" // #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))] // pub fn get_choices<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/lang/CharSequence")) }> { // // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getChoices", .descriptor == "()[Ljava/lang/CharSequence;" // unsafe { // let __jni_args = []; // let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); // let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getChoices\0", "()[Ljava/lang/CharSequence;\0"); // __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) // } // } /// [getAllowedDataTypes](https://developer.android.com/reference/android/app/RemoteInput.html#getAllowedDataTypes()) /// /// Required features: "java-util-Set" #[cfg(any(feature = "all", all(feature = "java-util-Set")))] pub fn get_allowed_data_types<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Set>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getAllowedDataTypes", .descriptor == "()Ljava/util/Set;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getAllowedDataTypes\0", "()Ljava/util/Set;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [isDataOnly](https://developer.android.com/reference/android/app/RemoteInput.html#isDataOnly()) pub fn is_data_only<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "isDataOnly", .descriptor == "()Z" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "isDataOnly\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getAllowFreeFormInput](https://developer.android.com/reference/android/app/RemoteInput.html#getAllowFreeFormInput()) pub fn get_allow_free_form_input<'env>(&'env self) -> __jni_bindgen::Result<bool> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getAllowFreeFormInput", .descriptor == "()Z" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getAllowFreeFormInput\0", "()Z\0"); __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getExtras](https://developer.android.com/reference/android/app/RemoteInput.html#getExtras()) /// /// Required features: "android-os-Bundle" #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))] pub fn get_extras<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Bundle>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "getExtras", .descriptor == "()Landroid/os/Bundle;" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "getExtras\0", "()Landroid/os/Bundle;\0"); __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [getDataResultsFromIntent](https://developer.android.com/reference/android/app/RemoteInput.html#getDataResultsFromIntent(android,%2520content,%2520Intent,%2520java,%2520lang,%2520String)) /// /// Required features: "android-content-Intent", "java-lang-String", "java-util-Map" #[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "java-lang-String", feature = "java-util-Map")))] pub fn get_data_results_from_intent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Map>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "getDataResultsFromIntent", .descriptor == "(Landroid/content/Intent;Ljava/lang/String;)Ljava/util/Map;" 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/app/RemoteInput\0", "getDataResultsFromIntent\0", "(Landroid/content/Intent;Ljava/lang/String;)Ljava/util/Map;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getResultsFromIntent](https://developer.android.com/reference/android/app/RemoteInput.html#getResultsFromIntent(android,%2520content,%2520Intent)) /// /// Required features: "android-content-Intent", "android-os-Bundle" #[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-os-Bundle")))] pub fn get_results_from_intent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Bundle>>> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "getResultsFromIntent", .descriptor == "(Landroid/content/Intent;)Landroid/os/Bundle;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "getResultsFromIntent\0", "(Landroid/content/Intent;)Landroid/os/Bundle;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Passing in arrays of objects is not yet supported // /// addResultsToIntent // /// // /// Required features: "android-app-RemoteInput", "android-content-Intent", "android-os-Bundle" // #[cfg(any(feature = "all", all(feature = "android-app-RemoteInput", feature = "android-content-Intent", feature = "android-os-Bundle")))] // pub fn add_results_to_intent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: Array { levels: 1, inner: Class(Id("android/app/RemoteInput")) }, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<()> { // // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "addResultsToIntent", .descriptor == "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "addResultsToIntent\0", "([Landroid/app/RemoteInput;Landroid/content/Intent;Landroid/os/Bundle;)V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [addDataResultToIntent](https://developer.android.com/reference/android/app/RemoteInput.html#addDataResultToIntent(android,%2520app,%2520RemoteInput,%2520android,%2520content,%2520Intent,%2520java,%2520util,%2520Map)) /// /// Required features: "android-app-RemoteInput", "android-content-Intent", "java-util-Map" #[cfg(any(feature = "all", all(feature = "android-app-RemoteInput", feature = "android-content-Intent", feature = "java-util-Map")))] pub fn add_data_result_to_intent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::RemoteInput>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Map>>) -> __jni_bindgen::Result<()> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "addDataResultToIntent", .descriptor == "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "addDataResultToIntent\0", "(Landroid/app/RemoteInput;Landroid/content/Intent;Ljava/util/Map;)V\0"); __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [setResultsSource](https://developer.android.com/reference/android/app/RemoteInput.html#setResultsSource(android,%2520content,%2520Intent,%2520int)) /// /// Required features: "android-content-Intent" #[cfg(any(feature = "all", all(feature = "android-content-Intent")))] pub fn set_results_source<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: i32) -> __jni_bindgen::Result<()> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "setResultsSource", .descriptor == "(Landroid/content/Intent;I)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "setResultsSource\0", "(Landroid/content/Intent;I)V\0"); __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [getResultsSource](https://developer.android.com/reference/android/app/RemoteInput.html#getResultsSource(android,%2520content,%2520Intent)) /// /// Required features: "android-content-Intent" #[cfg(any(feature = "all", all(feature = "android-content-Intent")))] pub fn get_results_source<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::Result<i32> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC | STATIC, .name == "getResultsSource", .descriptor == "(Landroid/content/Intent;)I" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "getResultsSource\0", "(Landroid/content/Intent;)I\0"); __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } /// [describeContents](https://developer.android.com/reference/android/app/RemoteInput.html#describeContents()) pub fn describe_contents<'env>(&'env self) -> __jni_bindgen::Result<i32> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "describeContents", .descriptor == "()I" unsafe { let __jni_args = []; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "describeContents\0", "()I\0"); __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } /// [writeToParcel](https://developer.android.com/reference/android/app/RemoteInput.html#writeToParcel(android,%2520os,%2520Parcel,%2520int)) /// /// Required features: "android-os-Parcel" #[cfg(any(feature = "all", all(feature = "android-os-Parcel")))] pub fn write_to_parcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::Result<()> { // class.path == "android/app/RemoteInput", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env); let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/RemoteInput\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0"); __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Failed to mangle method name // // Not emitting: Non-public method // // Not emitting: Static class constructor - never needs to be called by Rust. // /// <clinit> // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> { // // class.path == "android/app/RemoteInput", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/app/RemoteInput\0", "<clinit>\0", "()V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [CREATOR](https://developer.android.com/reference/android/app/RemoteInput.html#CREATOR) // /// // /// Required feature: android-os-Parcelable_Creator // #[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))] // pub fn creator<'env>(env: &'env __jni_bindgen::Env) -> android/os/Parcelable$Creator { // unsafe { // let (class, field) = env.require_class_static_field("android/app/RemoteInput\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0"); // env.get_static_object_field(class, field) // } // } /// public static final [EXTRA_RESULTS_DATA](https://developer.android.com/reference/android/app/RemoteInput.html#EXTRA_RESULTS_DATA) pub const EXTRA_RESULTS_DATA : &'static str = "android.remoteinput.resultsData"; /// public static final [RESULTS_CLIP_LABEL](https://developer.android.com/reference/android/app/RemoteInput.html#RESULTS_CLIP_LABEL) pub const RESULTS_CLIP_LABEL : &'static str = "android.remoteinput.results"; /// public static final [SOURCE_CHOICE](https://developer.android.com/reference/android/app/RemoteInput.html#SOURCE_CHOICE) pub const SOURCE_CHOICE : i32 = 1; /// public static final [SOURCE_FREE_FORM_INPUT](https://developer.android.com/reference/android/app/RemoteInput.html#SOURCE_FREE_FORM_INPUT) pub const SOURCE_FREE_FORM_INPUT : i32 = 0; } }