MaxstARSDK  3.5.0
MaxstAR.cs
1 /*==============================================================================
2 Copyright 2017 Maxst, Inc. All Rights Reserved.
3 ==============================================================================*/
4 
5 using UnityEngine;
6 using System;
7 using System.Linq;
8 using System.Runtime.InteropServices;
9 
10 namespace maxstAR
11 {
15  internal class MaxstAR
16  {
17  public static void OnSurfaceChanged(int surfaceWidth, int surfaceHeight)
18  {
19  if (Application.platform == RuntimePlatform.IPhonePlayer)
20  {
21  NativeStaticAPI.onSurfaceChanged(surfaceWidth, surfaceHeight);
22  }
23  else
24  {
25  NativeSharedAPI.onSurfaceChanged(surfaceWidth, surfaceHeight);
26  }
27  }
28 
33  public static void SetScreenOrientation(int orientation)
34  {
35  if (Application.platform == RuntimePlatform.IPhonePlayer)
36  {
37  NativeStaticAPI.setScreenOrientation(orientation);
38  }
39  else
40  {
41  NativeSharedAPI.setScreenOrientation(orientation);
42  }
43  }
44  }
45 }
static void SetScreenOrientation(int orientation)
Notify screen orientation chagned
Definition: MaxstAR.cs:33
Set device environment
Definition: MaxstAR.cs:15