1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        // // Not emitting: Non-public method
        // /// <init>
        // ///
        // /// Required features: "android-content-Context"
        // #[cfg(any(feature = "all", all(feature = "android-content-Context")))]
        // fn new<'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::Result<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>> {
        //     // class.path == "android/app/TaskStackBuilder", java.flags == (empty), .name == "<init>", .descriptor == "(Landroid/content/Context;)V"
        //     unsafe {
        //         let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/TaskStackBuilder\0", "<init>\0", "(Landroid/content/Context;)V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

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

        /// [addNextIntent](https://developer.android.com/reference/android/app/TaskStackBuilder.html#addNextIntent(android,%2520content,%2520Intent))
        ///
        /// Required features: "android-app-TaskStackBuilder", "android-content-Intent"
        #[cfg(any(feature = "all", all(feature = "android-app-TaskStackBuilder", feature = "android-content-Intent")))]
        pub fn add_next_intent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "addNextIntent", .descriptor == "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;"
            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/app/TaskStackBuilder\0", "addNextIntent\0", "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addNextIntentWithParentStack](https://developer.android.com/reference/android/app/TaskStackBuilder.html#addNextIntentWithParentStack(android,%2520content,%2520Intent))
        ///
        /// Required features: "android-app-TaskStackBuilder", "android-content-Intent"
        #[cfg(any(feature = "all", all(feature = "android-app-TaskStackBuilder", feature = "android-content-Intent")))]
        pub fn add_next_intent_with_parent_stack<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "addNextIntentWithParentStack", .descriptor == "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;"
            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/app/TaskStackBuilder\0", "addNextIntentWithParentStack\0", "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addParentStack](https://developer.android.com/reference/android/app/TaskStackBuilder.html#addParentStack(android,%2520app,%2520Activity))
        ///
        /// Required features: "android-app-Activity", "android-app-TaskStackBuilder"
        #[cfg(any(feature = "all", all(feature = "android-app-Activity", feature = "android-app-TaskStackBuilder")))]
        pub fn add_parent_stack_activity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Activity>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "addParentStack", .descriptor == "(Landroid/app/Activity;)Landroid/app/TaskStackBuilder;"
            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/app/TaskStackBuilder\0", "addParentStack\0", "(Landroid/app/Activity;)Landroid/app/TaskStackBuilder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addParentStack](https://developer.android.com/reference/android/app/TaskStackBuilder.html#addParentStack(java,%2520lang,%2520Class))
        ///
        /// Required features: "android-app-TaskStackBuilder", "java-lang-Class"
        #[cfg(any(feature = "all", all(feature = "android-app-TaskStackBuilder", feature = "java-lang-Class")))]
        pub fn add_parent_stack_class<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Class>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "addParentStack", .descriptor == "(Ljava/lang/Class;)Landroid/app/TaskStackBuilder;"
            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/app/TaskStackBuilder\0", "addParentStack\0", "(Ljava/lang/Class;)Landroid/app/TaskStackBuilder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [addParentStack](https://developer.android.com/reference/android/app/TaskStackBuilder.html#addParentStack(android,%2520content,%2520ComponentName))
        ///
        /// Required features: "android-app-TaskStackBuilder", "android-content-ComponentName"
        #[cfg(any(feature = "all", all(feature = "android-app-TaskStackBuilder", feature = "android-content-ComponentName")))]
        pub fn add_parent_stack_component_name<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::TaskStackBuilder>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "addParentStack", .descriptor == "(Landroid/content/ComponentName;)Landroid/app/TaskStackBuilder;"
            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/app/TaskStackBuilder\0", "addParentStack\0", "(Landroid/content/ComponentName;)Landroid/app/TaskStackBuilder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getIntentCount](https://developer.android.com/reference/android/app/TaskStackBuilder.html#getIntentCount())
        pub fn get_intent_count<'env>(&'env self) -> __jni_bindgen::Result<i32> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "getIntentCount", .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/app/TaskStackBuilder\0", "getIntentCount\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [editIntentAt](https://developer.android.com/reference/android/app/TaskStackBuilder.html#editIntentAt(int))
        ///
        /// Required features: "android-content-Intent"
        #[cfg(any(feature = "all", all(feature = "android-content-Intent")))]
        pub fn edit_intent_at<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Intent>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "editIntentAt", .descriptor == "(I)Landroid/content/Intent;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/TaskStackBuilder\0", "editIntentAt\0", "(I)Landroid/content/Intent;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [startActivities](https://developer.android.com/reference/android/app/TaskStackBuilder.html#startActivities())
        pub fn start_activities<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "startActivities", .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/app/TaskStackBuilder\0", "startActivities\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [startActivities](https://developer.android.com/reference/android/app/TaskStackBuilder.html#startActivities(android,%2520os,%2520Bundle))
        ///
        /// Required features: "android-os-Bundle"
        #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))]
        pub fn start_activities_bundle<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "startActivities", .descriptor == "(Landroid/os/Bundle;)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/app/TaskStackBuilder\0", "startActivities\0", "(Landroid/os/Bundle;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPendingIntent](https://developer.android.com/reference/android/app/TaskStackBuilder.html#getPendingIntent(int,%2520int))
        ///
        /// Required features: "android-app-PendingIntent"
        #[cfg(any(feature = "all", all(feature = "android-app-PendingIntent")))]
        pub fn get_pending_intent_int_int<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "getPendingIntent", .descriptor == "(II)Landroid/app/PendingIntent;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/app/TaskStackBuilder\0", "getPendingIntent\0", "(II)Landroid/app/PendingIntent;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPendingIntent](https://developer.android.com/reference/android/app/TaskStackBuilder.html#getPendingIntent(int,%2520int,%2520android,%2520os,%2520Bundle))
        ///
        /// Required features: "android-app-PendingIntent", "android-os-Bundle"
        #[cfg(any(feature = "all", all(feature = "android-app-PendingIntent", feature = "android-os-Bundle")))]
        pub fn get_pending_intent_int_int_bundle<'env>(&'env self, arg0: i32, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::PendingIntent>>> {
            // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "getPendingIntent", .descriptor == "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __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/app/TaskStackBuilder\0", "getPendingIntent\0", "(IILandroid/os/Bundle;)Landroid/app/PendingIntent;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        // // Not emitting: Returning arrays of objects not yet supported
        // /// [getIntents](https://developer.android.com/reference/android/app/TaskStackBuilder.html#getIntents())
        // ///
        // /// Required features: "android-content-Intent"
        // #[cfg(any(feature = "all", all(feature = "android-content-Intent")))]
        // pub fn get_intents<'env>(&'env self) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("android/content/Intent")) }> {
        //     // class.path == "android/app/TaskStackBuilder", java.flags == PUBLIC, .name == "getIntents", .descriptor == "()[Landroid/content/Intent;"
        //     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/app/TaskStackBuilder\0", "getIntents\0", "()[Landroid/content/Intent;\0");
        //         __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
        //     }
        // }
    }
}