-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathAndroid.Gms.Games.PlayGamesClass.cs
More file actions
29 lines (27 loc) · 1.19 KB
/
Android.Gms.Games.PlayGamesClass.cs
File metadata and controls
29 lines (27 loc) · 1.19 KB
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
using System;
using Android.App;
using Android.Runtime;
using Java.Interop;
namespace Android.Gms.Games
{
public sealed partial class PlayGames
{
// Matches: getSnapshotsClient(Activity) -> SnapshotsClient
[Register("getSnapshotsClient", "(Landroid/app/Activity;)Lcom/google/android/gms/games/SnapshotsClient;", "")]
public static unsafe global::Android.Gms.Games.SnapshotsClient GetSnapshotsClient(global::Android.App.Activity activity)
{
const string __id = "getSnapshotsClient.(Landroid/app/Activity;)Lcom/google/android/gms/games/SnapshotsClient;";
try
{
JniArgumentValue* __args = stackalloc JniArgumentValue[1];
__args[0] = new JniArgumentValue((activity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)activity).Handle);
var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
return global::Java.Lang.Object.GetObject<global::Android.Gms.Games.SnapshotsClient>(__rm.Handle, JniHandleOwnership.TransferLocalRef)!;
}
finally
{
global::System.GC.KeepAlive(activity);
}
}
}
}