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-telephony-mbms-StreamingService"))]
__jni_bindgen! {
    /// public class [StreamingService](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html)
    ///
    /// Required feature: "android-telephony-mbms-StreamingService"
    public class StreamingService ("android/telephony/mbms/StreamingService") extends crate::java::lang::Object, implements crate::java::lang::AutoCloseable {

        /// [getPlaybackUri](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#getPlaybackUri())
        ///
        /// Required features: "android-net-Uri"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
        pub fn getPlaybackUri<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/telephony/mbms/StreamingService", java.flags == PUBLIC, .name == "getPlaybackUri", .descriptor == "()Landroid/net/Uri;"
            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/telephony/mbms/StreamingService\0", "getPlaybackUri\0", "()Landroid/net/Uri;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getInfo](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#getInfo())
        ///
        /// Required features: "android-telephony-mbms-StreamingServiceInfo"
        #[cfg(any(feature = "all", all(feature = "android-telephony-mbms-StreamingServiceInfo")))]
        pub fn getInfo<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telephony::mbms::StreamingServiceInfo>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/telephony/mbms/StreamingService", java.flags == PUBLIC, .name == "getInfo", .descriptor == "()Landroid/telephony/mbms/StreamingServiceInfo;"
            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/telephony/mbms/StreamingService\0", "getInfo\0", "()Landroid/telephony/mbms/StreamingServiceInfo;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [close](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#close())
        pub fn close<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/telephony/mbms/StreamingService", java.flags == PUBLIC, .name == "close", .descriptor == "()V"
            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/telephony/mbms/StreamingService\0", "close\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [BROADCAST_METHOD](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#BROADCAST_METHOD)
        pub const BROADCAST_METHOD : i32 = 1;

        /// public static final [REASON_BY_USER_REQUEST](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_BY_USER_REQUEST)
        pub const REASON_BY_USER_REQUEST : i32 = 1;

        /// public static final [REASON_END_OF_SESSION](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_END_OF_SESSION)
        pub const REASON_END_OF_SESSION : i32 = 2;

        /// public static final [REASON_FREQUENCY_CONFLICT](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_FREQUENCY_CONFLICT)
        pub const REASON_FREQUENCY_CONFLICT : i32 = 3;

        /// public static final [REASON_LEFT_MBMS_BROADCAST_AREA](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_LEFT_MBMS_BROADCAST_AREA)
        pub const REASON_LEFT_MBMS_BROADCAST_AREA : i32 = 6;

        /// public static final [REASON_NONE](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_NONE)
        pub const REASON_NONE : i32 = 0;

        /// public static final [REASON_NOT_CONNECTED_TO_HOMECARRIER_LTE](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_NOT_CONNECTED_TO_HOMECARRIER_LTE)
        pub const REASON_NOT_CONNECTED_TO_HOMECARRIER_LTE : i32 = 5;

        /// public static final [REASON_OUT_OF_MEMORY](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#REASON_OUT_OF_MEMORY)
        pub const REASON_OUT_OF_MEMORY : i32 = 4;

        /// public static final [STATE_STALLED](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#STATE_STALLED)
        pub const STATE_STALLED : i32 = 3;

        /// public static final [STATE_STARTED](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#STATE_STARTED)
        pub const STATE_STARTED : i32 = 2;

        /// public static final [STATE_STOPPED](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#STATE_STOPPED)
        pub const STATE_STOPPED : i32 = 1;

        /// public static final [UNICAST_METHOD](https://developer.android.com/reference/android/telephony/mbms/StreamingService.html#UNICAST_METHOD)
        pub const UNICAST_METHOD : i32 = 2;
    }
}