internal static extern void SnapshotManager_Open( HandleRef self, /* from(DataSource_t) */ Types.DataSource data_source, /* from(char const *) */ string file_name, /* from(SnapshotConflictPolicy_t) */ Types.SnapshotConflictPolicy conflict_policy, /* from(SnapshotManager_OpenCallback_t) */ OpenCallback callback, /* from(void *) */ IntPtr callback_arg);
internal static extern void SnapshotManager_Open(HandleRef self, Types.DataSource data_source, string file_name, Types.SnapshotConflictPolicy conflict_policy, OpenCallback callback, IntPtr callback_arg);
internal void Open(string fileName, Types.DataSource source, Types.SnapshotConflictPolicy conflictPolicy, Action <SnapshotManager.OpenResponse> callback) { Misc.CheckNotNull <string>(fileName); Misc.CheckNotNull <Action <SnapshotManager.OpenResponse> >(callback); GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Open(this.mServices.AsHandle(), source, fileName, conflictPolicy, new GooglePlayGames.Native.Cwrapper.SnapshotManager.OpenCallback(SnapshotManager.InternalOpenCallback), Callbacks.ToIntPtr <SnapshotManager.OpenResponse>(callback, new Func <IntPtr, SnapshotManager.OpenResponse>(SnapshotManager.OpenResponse.FromPointer))); }
internal void Open(string fileName, Types.DataSource source, Types.SnapshotConflictPolicy conflictPolicy, Action <OpenResponse> callback) { Misc.CheckNotNull(fileName); Misc.CheckNotNull(callback); GooglePlayGames.Native.Cwrapper.SnapshotManager.SnapshotManager_Open(mServices.AsHandle(), source, fileName, conflictPolicy, InternalOpenCallback, Callbacks.ToIntPtr(callback, OpenResponse.FromPointer)); }