-
Notifications
You must be signed in to change notification settings - Fork 541
/
Copy pathValueAnimator.cs
48 lines (43 loc) · 1.72 KB
/
ValueAnimator.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
using System;
using Java.Interop;
using Android.Runtime;
namespace Android.Animation
{
public partial class ValueAnimator
{
static Delegate cb_setDuration_SetDuration_J_Landroid_animation_Animator_;
[Register ("setDuration", "(J)Landroid/animation/Animator;", "GetSetDuration_JHandler")]
public override unsafe Android.Animation.Animator SetDuration (long duration)
{
const string __id = "setDuration.(J)Landroid/animation/Animator;";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue (duration);
var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod (__id, this, __args);
return global::Java.Lang.Object.GetObject<Android.Animation.Animator> (__rm.Handle, JniHandleOwnership.TransferLocalRef);
} finally {
}
}
#pragma warning disable 0169
static Delegate GetSetDuration_JHandler ()
{
return cb_setDuration_SetDuration_J_Landroid_animation_Animator_ ??= new _JniMarshal_PPJ_L (n_SetDuration_J);
}
[global::System.Diagnostics.DebuggerDisableUserUnhandledExceptions]
static IntPtr n_SetDuration_J (IntPtr jnienv, IntPtr native__this, long duration)
{
if (!global::Java.Interop.JniEnvironment.BeginMarshalMethod (jnienv, out var __envp, out var __r))
return default;
try {
var __this = global::Java.Lang.Object.GetObject<Android.Animation.ValueAnimator> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
return JNIEnv.ToLocalJniHandle (__this.SetDuration (duration));
} catch (global::System.Exception __e) {
__r.OnUserUnhandledException (ref __envp, __e);
return default;
} finally {
global::Java.Interop.JniEnvironment.EndMarshalMethod (ref __envp);
}
}
#pragma warning restore 0169
}
}