// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [TimeShiftPositionCallback](https://developer.android.com/reference/android/media/tv/TvView.TimeShiftPositionCallback.html#TimeShiftPositionCallback())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::tv::TvView_TimeShiftPositionCallback>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvView$TimeShiftPositionCallback", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/tv/TvView$TimeShiftPositionCallback\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onTimeShiftStartPositionChanged](https://developer.android.com/reference/android/media/tv/TvView.TimeShiftPositionCallback.html#onTimeShiftStartPositionChanged(java.lang.String,%20long))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn onTimeShiftStartPositionChanged<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvView$TimeShiftPositionCallback", java.flags == PUBLIC, .name == "onTimeShiftStartPositionChanged", .descriptor == "(Ljava/lang/String;J)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/media/tv/TvView$TimeShiftPositionCallback\0", "onTimeShiftStartPositionChanged\0", "(Ljava/lang/String;J)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onTimeShiftCurrentPositionChanged](https://developer.android.com/reference/android/media/tv/TvView.TimeShiftPositionCallback.html#onTimeShiftCurrentPositionChanged(java.lang.String,%20long))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn onTimeShiftCurrentPositionChanged<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvView$TimeShiftPositionCallback", java.flags == PUBLIC, .name == "onTimeShiftCurrentPositionChanged", .descriptor == "(Ljava/lang/String;J)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/media/tv/TvView$TimeShiftPositionCallback\0", "onTimeShiftCurrentPositionChanged\0", "(Ljava/lang/String;J)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}
