-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathAdditions.cs
493 lines (431 loc) · 23.9 KB
/
Additions.cs
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
using System;
using Android.Runtime;
using Java.Interop;
using Java.Lang;
namespace AndroidX.AppCompat.View
{
public partial class SupportActionModeWrapper
{
static Delegate cb_getTitle;
#pragma warning disable 0169
static Delegate GetGetTitleHandler ()
{
if (cb_getTitle == null)
cb_getTitle = JNINativeWrapper.CreateDelegate ((Func<IntPtr, IntPtr, IntPtr>)n_GetTitle);
return cb_getTitle;
}
static IntPtr n_GetTitle (IntPtr jnienv, IntPtr native__this)
{
global::AndroidX.AppCompat.View.SupportActionModeWrapper __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.View.SupportActionModeWrapper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
return CharSequence.ToLocalJniHandle (__this.TitleFormatted);
}
#pragma warning restore 0169
static IntPtr id_getTitle;
public override unsafe global::Java.Lang.ICharSequence TitleFormatted {
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.view']/class[@name='SupportActionModeWrapper']/method[@name='getTitle' and count(parameter)=0]"
[Register ("getTitle", "()Ljava/lang/CharSequence;", "GetGetTitleHandler")]
get {
if (id_getTitle == IntPtr.Zero)
id_getTitle = JNIEnv.GetMethodID (class_ref, "getTitle", "()Ljava/lang/CharSequence;");
try {
if (GetType () == ThresholdType)
return global::Java.Lang.Object.GetObject<Java.Lang.ICharSequence> (JNIEnv.CallObjectMethod (((global::Java.Lang.Object)this).Handle, id_getTitle), JniHandleOwnership.TransferLocalRef);
else
return global::Java.Lang.Object.GetObject<Java.Lang.ICharSequence> (JNIEnv.CallNonvirtualObjectMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "getTitle", "()Ljava/lang/CharSequence;")), JniHandleOwnership.TransferLocalRef);
} finally {
}
}
set {
SetTitle (value);
}
}
static Delegate cb_setTitle_Ljava_lang_CharSequence_;
#pragma warning disable 0169
static Delegate GetSetTitle_Ljava_lang_CharSequence_Handler ()
{
if (cb_setTitle_Ljava_lang_CharSequence_ == null)
cb_setTitle_Ljava_lang_CharSequence_ = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, IntPtr>)n_SetTitle_Ljava_lang_CharSequence_);
return cb_setTitle_Ljava_lang_CharSequence_;
}
static void n_SetTitle_Ljava_lang_CharSequence_ (IntPtr jnienv, IntPtr native__this, IntPtr native_title)
{
global::AndroidX.AppCompat.View.SupportActionModeWrapper __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.View.SupportActionModeWrapper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
global::Java.Lang.ICharSequence title = global::Java.Lang.Object.GetObject<global::Java.Lang.ICharSequence> (native_title, JniHandleOwnership.DoNotTransfer);
__this.SetTitle (title);
}
#pragma warning restore 0169
static IntPtr id_setTitle_Ljava_lang_CharSequence_;
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.view']/class[@name='SupportActionModeWrapper']/method[@name='setTitle' and count(parameter)=1 and parameter[1][@type='java.lang.CharSequence']]"
[Register ("setTitle", "(Ljava/lang/CharSequence;)V", "GetSetTitle_Ljava_lang_CharSequence_Handler")]
public unsafe void SetTitle (global::Java.Lang.ICharSequence title)
{
if (id_setTitle_Ljava_lang_CharSequence_ == IntPtr.Zero)
id_setTitle_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID (class_ref, "setTitle", "(Ljava/lang/CharSequence;)V");
IntPtr native_title = CharSequence.ToLocalJniHandle (title);
try {
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue (native_title);
if (GetType () == ThresholdType)
JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setTitle_Ljava_lang_CharSequence_, __args);
else
JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setTitle", "(Ljava/lang/CharSequence;)V"), __args);
} finally {
JNIEnv.DeleteLocalRef (native_title);
}
}
static Delegate cb_getSubtitle;
#pragma warning disable 0169
static Delegate GetGetSubtitleHandler ()
{
if (cb_getSubtitle == null)
cb_getSubtitle = JNINativeWrapper.CreateDelegate ((Func<IntPtr, IntPtr, IntPtr>)n_GetSubtitle);
return cb_getSubtitle;
}
static IntPtr n_GetSubtitle (IntPtr jnienv, IntPtr native__this)
{
global::AndroidX.AppCompat.View.SupportActionModeWrapper __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.View.SupportActionModeWrapper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
return CharSequence.ToLocalJniHandle (__this.SubtitleFormatted);
}
#pragma warning restore 0169
static IntPtr id_getSubtitle;
public override unsafe global::Java.Lang.ICharSequence SubtitleFormatted {
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.view']/class[@name='SupportActionModeWrapper']/method[@name='getSubtitle' and count(parameter)=0]"
[Register ("getSubtitle", "()Ljava/lang/CharSequence;", "GetGetSubtitleHandler")]
get {
if (id_getSubtitle == IntPtr.Zero)
id_getSubtitle = JNIEnv.GetMethodID (class_ref, "getSubtitle", "()Ljava/lang/CharSequence;");
try {
if (GetType () == ThresholdType)
return global::Java.Lang.Object.GetObject<Java.Lang.ICharSequence> (JNIEnv.CallObjectMethod (((global::Java.Lang.Object)this).Handle, id_getSubtitle), JniHandleOwnership.TransferLocalRef);
else
return global::Java.Lang.Object.GetObject<Java.Lang.ICharSequence> (JNIEnv.CallNonvirtualObjectMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "getSubtitle", "()Ljava/lang/CharSequence;")), JniHandleOwnership.TransferLocalRef);
} finally {
}
}
set {
SetSubtitle (value);
}
}
static Delegate cb_setSubtitle_Ljava_lang_CharSequence_;
#pragma warning disable 0169
static Delegate GetSetSubtitle_Ljava_lang_CharSequence_Handler ()
{
if (cb_setSubtitle_Ljava_lang_CharSequence_ == null)
cb_setSubtitle_Ljava_lang_CharSequence_ = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, IntPtr>)n_SetSubtitle_Ljava_lang_CharSequence_);
return cb_setSubtitle_Ljava_lang_CharSequence_;
}
static void n_SetSubtitle_Ljava_lang_CharSequence_ (IntPtr jnienv, IntPtr native__this, IntPtr native_subtitle)
{
global::AndroidX.AppCompat.View.SupportActionModeWrapper __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.View.SupportActionModeWrapper> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
global::Java.Lang.ICharSequence subtitle = global::Java.Lang.Object.GetObject<global::Java.Lang.ICharSequence> (native_subtitle, JniHandleOwnership.DoNotTransfer);
__this.SetSubtitle (subtitle);
}
#pragma warning restore 0169
static IntPtr id_setSubtitle_Ljava_lang_CharSequence_;
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.view']/class[@name='SupportActionModeWrapper']/method[@name='setSubtitle' and count(parameter)=1 and parameter[1][@type='java.lang.CharSequence']]"
[Register ("setSubtitle", "(Ljava/lang/CharSequence;)V", "GetSetSubtitle_Ljava_lang_CharSequence_Handler")]
public unsafe void SetSubtitle (global::Java.Lang.ICharSequence subtitle)
{
if (id_setSubtitle_Ljava_lang_CharSequence_ == IntPtr.Zero)
id_setSubtitle_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID (class_ref, "setSubtitle", "(Ljava/lang/CharSequence;)V");
IntPtr native_subtitle = CharSequence.ToLocalJniHandle (subtitle);
try {
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue (native_subtitle);
if (GetType () == ThresholdType)
JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setSubtitle_Ljava_lang_CharSequence_, __args);
else
JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setSubtitle", "(Ljava/lang/CharSequence;)V"), __args);
} finally {
JNIEnv.DeleteLocalRef (native_subtitle);
}
}
}
}
namespace AndroidX.AppCompat.Widget
{
public partial class AbsActionBarView
{
public override Android.Views.ViewStates Visibility {
get {
return base.Visibility;
}
set {
SetVisibility (value);
}
}
static Delegate cb_setVisibility_I;
#pragma warning disable 0169
static Delegate GetSetVisibility_IHandler ()
{
if (cb_setVisibility_I == null)
cb_setVisibility_I = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, int>)n_SetVisibility_I);
return cb_setVisibility_I;
}
static void n_SetVisibility_I (IntPtr jnienv, IntPtr native__this, int native_visibility)
{
global::AndroidX.AppCompat.Widget.AbsActionBarView __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.Widget.AbsActionBarView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
global::Android.Views.ViewStates visibility = (global::Android.Views.ViewStates)native_visibility;
__this.SetVisibility (visibility);
}
#pragma warning restore 0169
static IntPtr id_setVisibility_I;
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.widget']/class[@name='AbsActionBarView']/method[@name='setVisibility' and count(parameter)=1 and parameter[1][@type='int']]"
[Register ("setVisibility", "(I)V", "GetSetVisibility_IHandler")]
public unsafe virtual void SetVisibility ([global::Android.Runtime.GeneratedEnum] global::Android.Views.ViewStates visibility)
{
if (id_setVisibility_I == IntPtr.Zero)
id_setVisibility_I = JNIEnv.GetMethodID (class_ref, "setVisibility", "(I)V");
try {
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue ((int)visibility);
if (GetType () == ThresholdType)
JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setVisibility_I, __args);
else
JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setVisibility", "(I)V"), __args);
} finally {
}
}
}
public partial class ActionBarContainer
{
public override Android.Views.ViewStates Visibility {
get {
return base.Visibility;
}
set {
SetVisibility (value);
}
}
static Delegate cb_setVisibility_I;
#pragma warning disable 0169
static Delegate GetSetVisibility_IHandler ()
{
if (cb_setVisibility_I == null)
cb_setVisibility_I = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, int>)n_SetVisibility_I);
return cb_setVisibility_I;
}
static void n_SetVisibility_I (IntPtr jnienv, IntPtr native__this, int native_visibility)
{
global::AndroidX.AppCompat.Widget.ActionBarContainer __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.Widget.ActionBarContainer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
global::Android.Views.ViewStates visibility = (global::Android.Views.ViewStates)native_visibility;
__this.SetVisibility (visibility);
}
#pragma warning restore 0169
static IntPtr id_setVisibility_I;
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.widget']/class[@name='ActionBarContainer']/method[@name='setVisibility' and count(parameter)=1 and parameter[1][@type='int']]"
[Register ("setVisibility", "(I)V", "GetSetVisibility_IHandler")]
public unsafe void SetVisibility ([global::Android.Runtime.GeneratedEnum] global::Android.Views.ViewStates visibility)
{
if (id_setVisibility_I == IntPtr.Zero)
id_setVisibility_I = JNIEnv.GetMethodID (class_ref, "setVisibility", "(I)V");
try {
JValue* __args = stackalloc JValue [1];
__args [0] = new JValue ((int)visibility);
if (GetType () == ThresholdType)
JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setVisibility_I, __args);
else
JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setVisibility", "(I)V"), __args);
} finally {
}
}
}
// public partial class AppCompatSpinner
// {
// public override Android.Widget.ISpinnerAdapter Adapter {
// get {
// return base.Adapter;
// }
// set {
// SetAdapter (value);
// }
// }
// static Delegate cb_setAdapter_Landroid_widget_SpinnerAdapter_;
//#pragma warning disable 0169
// static Delegate GetSetAdapter_Landroid_widget_SpinnerAdapter_Handler ()
// {
// if (cb_setAdapter_Landroid_widget_SpinnerAdapter_ == null)
// cb_setAdapter_Landroid_widget_SpinnerAdapter_ = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, IntPtr>)n_SetAdapter_Landroid_widget_SpinnerAdapter_);
// return cb_setAdapter_Landroid_widget_SpinnerAdapter_;
// }
// static void n_SetAdapter_Landroid_widget_SpinnerAdapter_ (IntPtr jnienv, IntPtr native__this, IntPtr native_adapter)
// {
// global::AndroidX.AppCompat.Widget.AppCompatSpinner __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.Widget.AppCompatSpinner> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
// global::Android.Widget.ISpinnerAdapter adapter = (global::Android.Widget.ISpinnerAdapter)global::Java.Lang.Object.GetObject<global::Android.Widget.ISpinnerAdapter> (native_adapter, JniHandleOwnership.DoNotTransfer);
// __this.SetAdapter (adapter);
// }
//#pragma warning restore 0169
// static IntPtr id_setAdapter_Landroid_widget_SpinnerAdapter_;
// // Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.widget']/class[@name='AppCompatSpinner']/method[@name='setAdapter' and count(parameter)=1 and parameter[1][@type='android.widget.SpinnerAdapter']]"
// [Register ("setAdapter", "(Landroid/widget/SpinnerAdapter;)V", "GetSetAdapter_Landroid_widget_SpinnerAdapter_Handler")]
// public unsafe void SetAdapter (global::Android.Widget.ISpinnerAdapter adapter)
// {
// if (id_setAdapter_Landroid_widget_SpinnerAdapter_ == IntPtr.Zero)
// id_setAdapter_Landroid_widget_SpinnerAdapter_ = JNIEnv.GetMethodID (class_ref, "setAdapter", "(Landroid/widget/SpinnerAdapter;)V");
// try {
// JValue* __args = stackalloc JValue [1];
// __args [0] = new JValue (adapter);
// if (GetType () == ThresholdType)
// JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setAdapter_Landroid_widget_SpinnerAdapter_, __args);
// else
// JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setAdapter", "(Landroid/widget/SpinnerAdapter;)V"), __args);
// } finally {
// }
// }
//}
// mc++ begin
// public partial class ListViewCompat
// {
// public override Android.Graphics.Drawables.Drawable Selector {
// set {
// SetSelector (value);
// }
// get {
// return base.Selector;
// }
// }
// static Delegate cb_setSelector_Landroid_graphics_drawable_Drawable_;
//#pragma warning disable 0169
// static Delegate GetSetSelector_Landroid_graphics_drawable_Drawable_Handler ()
// {
// if (cb_setSelector_Landroid_graphics_drawable_Drawable_ == null)
// cb_setSelector_Landroid_graphics_drawable_Drawable_ = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, IntPtr>)n_SetSelector_Landroid_graphics_drawable_Drawable_);
// return cb_setSelector_Landroid_graphics_drawable_Drawable_;
// }
// static void n_SetSelector_Landroid_graphics_drawable_Drawable_ (IntPtr jnienv, IntPtr native__this, IntPtr native_sel)
// {
// global::AndroidX.AppCompat.Widget.ListViewCompat __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.Widget.ListViewCompat> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
// global::Android.Graphics.Drawables.Drawable sel = global::Java.Lang.Object.GetObject<global::Android.Graphics.Drawables.Drawable> (native_sel, JniHandleOwnership.DoNotTransfer);
// __this.SetSelector (sel);
// }
//#pragma warning restore 0169
// static IntPtr id_setSelector_Landroid_graphics_drawable_Drawable_;
// // Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.widget']/class[@name='ListViewCompat']/method[@name='setSelector' and count(parameter)=1 and parameter[1][@type='android.graphics.drawable.Drawable']]"
// [Register ("setSelector", "(Landroid/graphics/drawable/Drawable;)V", "GetSetSelector_Landroid_graphics_drawable_Drawable_Handler")]
// public unsafe void SetSelector (global::Android.Graphics.Drawables.Drawable sel)
// {
// if (id_setSelector_Landroid_graphics_drawable_Drawable_ == IntPtr.Zero)
// id_setSelector_Landroid_graphics_drawable_Drawable_ = JNIEnv.GetMethodID (class_ref, "setSelector", "(Landroid/graphics/drawable/Drawable;)V");
// try {
// JValue* __args = stackalloc JValue [1];
// __args [0] = new JValue (sel);
// if (GetType () == ThresholdType)
// JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setSelector_Landroid_graphics_drawable_Drawable_, __args);
// else
// JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setSelector", "(Landroid/graphics/drawable/Drawable;)V"), __args);
// } finally {
// }
// }
//}
// mc++ end
// public partial class ScrollingTabContainerView
// {
// private partial class TabView
// {
// public override bool Selected {
// set {
// SetSelected (value);
// }
// get {
// return base.Selected;
// }
// }
// static Delegate cb_setSelected_Z;
//#pragma warning disable 0169
// static Delegate GetSetSelected_ZHandler ()
// {
// if (cb_setSelected_Z == null)
// cb_setSelected_Z = JNINativeWrapper.CreateDelegate ((Action<IntPtr, IntPtr, bool>)n_SetSelected_Z);
// return cb_setSelected_Z;
// }
// static void n_SetSelected_Z (IntPtr jnienv, IntPtr native__this, bool selected)
// {
// global::AndroidX.AppCompat.Widget.ScrollingTabContainerView.TabView __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.Widget.ScrollingTabContainerView.TabView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
// __this.SetSelected (selected);
// }
//#pragma warning restore 0169
// static IntPtr id_setSelected_Z;
// // Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.widget']/class[@name='ScrollingTabContainerView.TabView']/method[@name='setSelected' and count(parameter)=1 and parameter[1][@type='boolean']]"
// [Register ("setSelected", "(Z)V", "GetSetSelected_ZHandler")]
// public unsafe void SetSelected (bool selected)
// {
// if (id_setSelected_Z == IntPtr.Zero)
// id_setSelected_Z = JNIEnv.GetMethodID (class_ref, "setSelected", "(Z)V");
// try {
// JValue* __args = stackalloc JValue [1];
// __args [0] = new JValue (selected);
// if (GetType () == ThresholdType)
// JNIEnv.CallVoidMethod (((global::Java.Lang.Object)this).Handle, id_setSelected_Z, __args);
// else
// JNIEnv.CallNonvirtualVoidMethod (((global::Java.Lang.Object)this).Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "setSelected", "(Z)V"), __args);
// } finally {
// }
// }
// }
// }
}
namespace AndroidX.AppCompat.View.Menu
{
// Metadata.xml XPath class reference: path="/api/package[@name='androidx.appcompat.view.menu']/class[@name='BaseMenuPresenter']"
public abstract partial class BaseMenuPresenter
{
public void SetCallback (global::AndroidX.AppCompat.View.Menu.IMenuPresenterCallback callback)
{
Callback = callback;
}
}
public partial class ActionMenuItemView
{
public void SetEnabled (bool enabled)
{
Enabled = enabled;
}
}
public partial class ListMenuItemView
{
public void SetEnabled (bool enabled)
{
Enabled = enabled;
}
}
public partial class MenuBuilder
{
public void SetGroupDividerEnabled(bool enabled)
{
GroupDividerEnabled = enabled;
}
}
public partial class MenuAdapter
{
static Delegate cb_getItem_I;
#pragma warning disable 0169
static Delegate GetGetItem_IHandler()
{
if (cb_getItem_I == null)
cb_getItem_I = JNINativeWrapper.CreateDelegate((Func<IntPtr, IntPtr, int, Java.Lang.Object>)n_GetItem_I);
return cb_getItem_I;
}
static Java.Lang.Object n_GetItem_I(IntPtr jnienv, IntPtr native__this, int position)
{
global::AndroidX.AppCompat.View.Menu.MenuAdapter __this = global::Java.Lang.Object.GetObject<global::AndroidX.AppCompat.View.Menu.MenuAdapter>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
return __this.GetItem(position);
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='androidx.appcompat.view.menu']/class[@name='MenuAdapter']/method[@name='getItem' and count(parameter)=1 and parameter[1][@type='int']]"
[Register("getItem", "(I)J", "GetGetItem_IHandler")]
public override unsafe Java.Lang.Object GetItem(int position)
{
const string __id = "getItem.(I)J";
try
{
JniArgumentValue* __args = stackalloc JniArgumentValue[1];
__args[0] = new JniArgumentValue(position);
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
return global::Java.Lang.Object.GetObject<global::Java.Lang.Object>(__rm.Handle, JniHandleOwnership.TransferLocalRef);
}
finally
{
}
}
}
}