IClientImpl.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // <copyright file="IClientImpl.cs" company="Google Inc.">
  2. // Copyright (C) 2015 Google Inc. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. // </copyright>
  16. #if (UNITY_ANDROID || (UNITY_IPHONE && !NO_GPGS))
  17. using System;
  18. using GooglePlayGames.BasicApi;
  19. using GooglePlayGames.Native.PInvoke;
  20. namespace GooglePlayGames
  21. {
  22. /// <summary>
  23. /// Interface defining platform specific functionality.
  24. /// </summary>
  25. internal interface IClientImpl
  26. {
  27. PlatformConfiguration CreatePlatformConfiguration (PlayGamesClientConfiguration clientConfig);
  28. TokenClient CreateTokenClient (bool reset);
  29. void GetPlayerStats(IntPtr apiClientPtr, Action<CommonStatusCodes, GooglePlayGames.BasicApi.PlayerStats> callback);
  30. /// <summary>
  31. /// Sets the gravity for popups (Android only).
  32. /// </summary>
  33. /// <remarks>This can only be called after authentication. It affects
  34. /// popups for achievements and other game services elements.</remarks>
  35. /// <param name="gravity">Gravity for the popup.</param>
  36. void SetGravityForPopups(IntPtr apiClient, Gravity gravity);
  37. }
  38. }
  39. #endif