// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-telephony-MbmsStreamingSession"))]
__jni_bindgen! {
/// public class [MbmsStreamingSession](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.html)
///
/// Required feature: "android-telephony-MbmsStreamingSession"
public class MbmsStreamingSession ("android/telephony/MbmsStreamingSession") extends crate::java::lang::Object, implements crate::java::lang::AutoCloseable {
/// [create](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.html#create(android.content.Context,%20java.util.concurrent.Executor,%20int,%20android.telephony.mbms.MbmsStreamingSessionCallback))
///
/// Required features: "android-content-Context", "android-telephony-MbmsStreamingSession", "android-telephony-mbms-MbmsStreamingSessionCallback", "java-util-concurrent-Executor"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-telephony-MbmsStreamingSession", feature = "android-telephony-mbms-MbmsStreamingSessionCallback", feature = "java-util-concurrent-Executor")))]
pub fn create_Context_Executor_int_MbmsStreamingSessionCallback<'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::util::concurrent::Executor>>, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telephony::mbms::MbmsStreamingSessionCallback>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telephony::MbmsStreamingSession>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telephony/MbmsStreamingSession", java.flags == PUBLIC | STATIC, .name == "create", .descriptor == "(Landroid/content/Context;Ljava/util/concurrent/Executor;ILandroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/telephony/MbmsStreamingSession\0", "create\0", "(Landroid/content/Context;Ljava/util/concurrent/Executor;ILandroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [create](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.html#create(android.content.Context,%20java.util.concurrent.Executor,%20android.telephony.mbms.MbmsStreamingSessionCallback))
///
/// Required features: "android-content-Context", "android-telephony-MbmsStreamingSession", "android-telephony-mbms-MbmsStreamingSessionCallback", "java-util-concurrent-Executor"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-telephony-MbmsStreamingSession", feature = "android-telephony-mbms-MbmsStreamingSessionCallback", feature = "java-util-concurrent-Executor")))]
pub fn create_Context_Executor_MbmsStreamingSessionCallback<'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::util::concurrent::Executor>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telephony::mbms::MbmsStreamingSessionCallback>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telephony::MbmsStreamingSession>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telephony/MbmsStreamingSession", java.flags == PUBLIC | STATIC, .name == "create", .descriptor == "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;"
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/telephony/MbmsStreamingSession\0", "create\0", "(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/MbmsStreamingSessionCallback;)Landroid/telephony/MbmsStreamingSession;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [close](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.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/MbmsStreamingSession", 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/MbmsStreamingSession\0", "close\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [requestUpdateStreamingServices](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.html#requestUpdateStreamingServices(java.util.List))
///
/// Required features: "java-util-List"
#[cfg(any(feature = "all", all(feature = "java-util-List")))]
pub fn requestUpdateStreamingServices<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::List>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telephony/MbmsStreamingSession", java.flags == PUBLIC, .name == "requestUpdateStreamingServices", .descriptor == "(Ljava/util/List;)V"
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/telephony/MbmsStreamingSession\0", "requestUpdateStreamingServices\0", "(Ljava/util/List;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [startStreaming](https://developer.android.com/reference/android/telephony/MbmsStreamingSession.html#startStreaming(android.telephony.mbms.StreamingServiceInfo,%20java.util.concurrent.Executor,%20android.telephony.mbms.StreamingServiceCallback))
///
/// Required features: "android-telephony-mbms-StreamingService", "android-telephony-mbms-StreamingServiceCallback", "android-telephony-mbms-StreamingServiceInfo", "java-util-concurrent-Executor"
#[cfg(any(feature = "all", all(feature = "android-telephony-mbms-StreamingService", feature = "android-telephony-mbms-StreamingServiceCallback", feature = "android-telephony-mbms-StreamingServiceInfo", feature = "java-util-concurrent-Executor")))]
pub fn startStreaming<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telephony::mbms::StreamingServiceInfo>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::Executor>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telephony::mbms::StreamingServiceCallback>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telephony::mbms::StreamingService>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telephony/MbmsStreamingSession", java.flags == PUBLIC, .name == "startStreaming", .descriptor == "(Landroid/telephony/mbms/StreamingServiceInfo;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/StreamingServiceCallback;)Landroid/telephony/mbms/StreamingService;"
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_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telephony/MbmsStreamingSession\0", "startStreaming\0", "(Landroid/telephony/mbms/StreamingServiceInfo;Ljava/util/concurrent/Executor;Landroid/telephony/mbms/StreamingServiceCallback;)Landroid/telephony/mbms/StreamingService;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}