This repository was archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathadditions.cs
97 lines (90 loc) · 3.54 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
using System;
using Android.Runtime;
using Java.Interop;
namespace Xamarin.Facebook
{
public partial class GraphRequestAsyncTask {
protected override Java.Lang.Object DoInBackground(params Java.Lang.Object[] @params)
{
return new Java.Lang.Object(JNIEnv.CallObjectMethod(Handle, JNIEnv.GetMethodID(JNIEnv.GetObjectClass(Handle), "doInBackground", "([Ljava/lang/Object;)Ljava/lang/Object;")), JniHandleOwnership.TransferLocalRef);
}
}
public partial class GraphRequestBatch : global::Java.Util.AbstractList
{
// Metadata.xml XPath method reference: path="/api/package[@name='com.facebook']/class[@name='GraphRequestBatch']/method[@name='size' and count(parameter)=0]"
[Register("size", "()I", "")]
public override sealed unsafe int Size()
{
const string __id = "size.()I";
try
{
var __rm = _members.InstanceMethods.InvokeNonvirtualInt32Method(__id, this, null);
return __rm;
}
finally
{
}
}
// Metadata.xml XPath method reference: path="/api/package[@name='com.facebook']/class[@name='GraphRequestBatch']/method[@name='getSize' and count(parameter)=0]"
[Register("getSize", "()I", "")]
public unsafe int GetSize()
{
const string __id = "getSize.()I";
try
{
var __rm = _members.InstanceMethods.InvokeAbstractInt32Method(__id, this, null);
return __rm;
}
finally
{
}
}
}
}
namespace Xamarin.Facebook.AppEvents.Internal
{
public partial class FileDownloadTask
{
static Delegate cb_doInBackground_arrayLjava_lang_String_;
#pragma warning disable 0169
static Delegate GetDoInBackground_arrayLjava_lang_String_Handler()
{
if (cb_doInBackground_arrayLjava_lang_String_ == null)
cb_doInBackground_arrayLjava_lang_String_ = JNINativeWrapper.CreateDelegate((Func<IntPtr,IntPtr,IntPtr, IntPtr>)n_DoInBackground_arrayLjava_lang_String_);
return cb_doInBackground_arrayLjava_lang_String_;
}
static IntPtr n_DoInBackground_arrayLjava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_args)
{
var __this = global::Java.Lang.Object.GetObject<global::Xamarin.Facebook.AppEvents.Internal.FileDownloadTask>(jnienv, native__this, JniHandleOwnership.DoNotTransfer);
var args = (Java.Lang.Object[])JNIEnv.GetArray(native_args, JniHandleOwnership.DoNotTransfer, typeof(Java.Lang.Object));
IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.DoInBackground(args));
if (args != null)
JNIEnv.CopyArray(args, native_args);
return __ret;
}
#pragma warning restore 0169
// Metadata.xml XPath method reference: path="/api/package[@name='com.facebook.appevents.internal']/class[@name='FileDownloadTask']/method[@name='doInBackground' and count(parameter)=1 and parameter[1][@type='java.lang.String...']]"
[Register("doInBackground", "([Ljava/lang/String;)Ljava/lang/Boolean;", "GetDoInBackground_arrayLjava_lang_String_Handler")]
protected override unsafe global::Java.Lang.Object DoInBackground(params global::Java.Lang.Object[] args)
{
const string __id = "doInBackground.([Ljava/lang/String;)Ljava/lang/Boolean;";
IntPtr native_args = JNIEnv.NewArray(args);
try
{
JniArgumentValue* __args = stackalloc JniArgumentValue[1];
__args[0] = new JniArgumentValue(native_args);
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
return global::Java.Lang.Object.GetObject<global::Java.Lang.Object>(__rm.Handle, JniHandleOwnership.TransferLocalRef);
}
finally
{
if (args != null)
{
JNIEnv.CopyArray(native_args, args);
JNIEnv.DeleteLocalRef(native_args);
}
global::System.GC.KeepAlive(args);
}
}
}
}