// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-service-notification-Condition"))]
__jni_bindgen! {
/// public final class [Condition](https://developer.android.com/reference/android/service/notification/Condition.html)
///
/// Required feature: "android-service-notification-Condition"
public final class Condition ("android/service/notification/Condition") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
/// [Condition](https://developer.android.com/reference/android/service/notification/Condition.html#Condition(android.net.Uri,%20java.lang.String,%20int))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn new_Uri_String_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::service::notification::Condition>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/net/Uri;Ljava/lang/String;I)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)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/notification/Condition\0", "<init>\0", "(Landroid/net/Uri;Ljava/lang/String;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Condition](https://developer.android.com/reference/android/service/notification/Condition.html#Condition(android.net.Uri,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn new_Uri_String_String_String_int_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg4: i32, arg5: i32, arg6: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::service::notification::Condition>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)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()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5), __jni_bindgen::AsJValue::as_jvalue(&arg6)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/notification/Condition\0", "<init>\0", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;III)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Condition](https://developer.android.com/reference/android/service/notification/Condition.html#Condition(android.os.Parcel))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn new_Parcel<'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::std::result::Result<__jni_bindgen::Local<'env, crate::android::service::notification::Condition>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .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/service/notification/Condition\0", "<init>\0", "(Landroid/os/Parcel;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [writeToParcel](https://developer.android.com/reference/android/service/notification/Condition.html#writeToParcel(android.os.Parcel,%20int))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", 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/service/notification/Condition\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/android/service/notification/Condition.html#toString())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "toString", .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/service/notification/Condition\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [stateToString](https://developer.android.com/reference/android/service/notification/Condition.html#stateToString(int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn stateToString<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC | STATIC, .name == "stateToString", .descriptor == "(I)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/service/notification/Condition\0", "stateToString\0", "(I)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [relevanceToString](https://developer.android.com/reference/android/service/notification/Condition.html#relevanceToString(int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn relevanceToString<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC | STATIC, .name == "relevanceToString", .descriptor == "(I)Ljava/lang/String;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/service/notification/Condition\0", "relevanceToString\0", "(I)Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/android/service/notification/Condition.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/notification/Condition\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/android/service/notification/Condition.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "hashCode", .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/service/notification/Condition\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [describeContents](https://developer.android.com/reference/android/service/notification/Condition.html#describeContents())
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", 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/service/notification/Condition\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [copy](https://developer.android.com/reference/android/service/notification/Condition.html#copy())
///
/// Required features: "android-service-notification-Condition"
#[cfg(any(feature = "all", all(feature = "android-service-notification-Condition")))]
pub fn copy<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::service::notification::Condition>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC, .name == "copy", .descriptor == "()Landroid/service/notification/Condition;"
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/service/notification/Condition\0", "copy\0", "()Landroid/service/notification/Condition;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [newId](https://developer.android.com/reference/android/service/notification/Condition.html#newId(android.content.Context))
///
/// Required features: "android-content-Context", "android-net-Uri_Builder"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-net-Uri_Builder")))]
pub fn newId<'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<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/service/notification/Condition", java.flags == PUBLIC | STATIC, .name == "newId", .descriptor == "(Landroid/content/Context;)Landroid/net/Uri$Builder;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/service/notification/Condition\0", "newId\0", "(Landroid/content/Context;)Landroid/net/Uri$Builder;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isValidId](https://developer.android.com/reference/android/service/notification/Condition.html#isValidId(android.net.Uri,%20java.lang.String))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn isValidId<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, 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/service/notification/Condition", java.flags == PUBLIC | STATIC, .name == "isValidId", .descriptor == "(Landroid/net/Uri;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/service/notification/Condition\0", "isValidId\0", "(Landroid/net/Uri;Ljava/lang/String;)Z\0");
__jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CREATOR](https://developer.android.com/reference/android/service/notification/Condition.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) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/service/notification/Condition\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// public static final [FLAG_RELEVANT_ALWAYS](https://developer.android.com/reference/android/service/notification/Condition.html#FLAG_RELEVANT_ALWAYS)
pub const FLAG_RELEVANT_ALWAYS : i32 = 2;
/// public static final [FLAG_RELEVANT_NOW](https://developer.android.com/reference/android/service/notification/Condition.html#FLAG_RELEVANT_NOW)
pub const FLAG_RELEVANT_NOW : i32 = 1;
/// public static final [SCHEME](https://developer.android.com/reference/android/service/notification/Condition.html#SCHEME)
pub const SCHEME : &'static str = "condition";
/// public static final [STATE_ERROR](https://developer.android.com/reference/android/service/notification/Condition.html#STATE_ERROR)
pub const STATE_ERROR : i32 = 3;
/// public static final [STATE_FALSE](https://developer.android.com/reference/android/service/notification/Condition.html#STATE_FALSE)
pub const STATE_FALSE : i32 = 0;
/// public static final [STATE_TRUE](https://developer.android.com/reference/android/service/notification/Condition.html#STATE_TRUE)
pub const STATE_TRUE : i32 = 1;
/// public static final [STATE_UNKNOWN](https://developer.android.com/reference/android/service/notification/Condition.html#STATE_UNKNOWN)
pub const STATE_UNKNOWN : i32 = 2;
/// **get** public final [flags](https://developer.android.com/reference/android/service/notification/Condition.html#flags)
pub fn flags<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "flags\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [icon](https://developer.android.com/reference/android/service/notification/Condition.html#icon)
pub fn icon<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "icon\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [id](https://developer.android.com/reference/android/service/notification/Condition.html#id)
///
/// Required feature: "android-net-Uri"
#[cfg(any(feature = "all", feature = "android-net-Uri"))]
pub fn id<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "id\0", "Landroid/net/Uri;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [line1](https://developer.android.com/reference/android/service/notification/Condition.html#line1)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn line1<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "line1\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [line2](https://developer.android.com/reference/android/service/notification/Condition.html#line2)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn line2<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "line2\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [state](https://developer.android.com/reference/android/service/notification/Condition.html#state)
pub fn state<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "state\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [summary](https://developer.android.com/reference/android/service/notification/Condition.html#summary)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn summary<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/service/notification/Condition\0", "summary\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
}
}