jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-provider-BlockedNumberContract"))]
__jni_bindgen! {
    /// public class [BlockedNumberContract](https://developer.android.com/reference/android/provider/BlockedNumberContract.html)
    ///
    /// Required feature: "android-provider-BlockedNumberContract"
    public class BlockedNumberContract ("android/provider/BlockedNumberContract") extends crate::java::lang::Object {

        /// [isBlocked](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#isBlocked(android.content.Context,%20java.lang.String))
        ///
        /// Required features: "android-content-Context", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
        pub fn isBlocked<'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::java::lang::String>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "isBlocked", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)Z"
            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/BlockedNumberContract\0", "isBlocked\0", "(Landroid/content/Context;Ljava/lang/String;)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unblock](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#unblock(android.content.Context,%20java.lang.String))
        ///
        /// Required features: "android-content-Context", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
        pub fn unblock<'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::java::lang::String>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "unblock", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)I"
            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/BlockedNumberContract\0", "unblock\0", "(Landroid/content/Context;Ljava/lang/String;)I\0");
                __jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [canCurrentUserBlockNumbers](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#canCurrentUserBlockNumbers(android.content.Context))
        ///
        /// Required features: "android-content-Context"
        #[cfg(any(feature = "all", all(feature = "android-content-Context")))]
        pub fn canCurrentUserBlockNumbers<'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::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/provider/BlockedNumberContract", java.flags == PUBLIC | STATIC, .name == "canCurrentUserBlockNumbers", .descriptor == "(Landroid/content/Context;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/BlockedNumberContract\0", "canCurrentUserBlockNumbers\0", "(Landroid/content/Context;)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [AUTHORITY](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#AUTHORITY)
        pub const AUTHORITY : &'static str = "com.android.blockednumber";

        /// **get** public static final [AUTHORITY_URI](https://developer.android.com/reference/android/provider/BlockedNumberContract.html#AUTHORITY_URI)
        ///
        /// Required feature: "android-net-Uri"
        #[cfg(any(feature = "all", feature = "android-net-Uri"))]
        pub fn AUTHORITY_URI<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/provider/BlockedNumberContract\0", "AUTHORITY_URI\0", "Landroid/net/Uri;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}