Show / Hide Table of Contents

    Class AppearitionGate

    Handle of the Core SDK. Contains the current profile being loaded, handling of internet connectivity, common API and all common and shared utilities.

    Inheritance
    System.Object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    AppearitionGate
    Namespace: Appearition
    Assembly: Appearition.SDK.dll
    Syntax
    public class AppearitionGate : MonoBehaviour

    Fields

    webGL_appId

    Only used in WEBGL. Storage for the Bundle Identifier when not available in the player settings.

    Declaration
    public string webGL_appId
    Field Value
    Type Description
    System.String

    Properties

    CurrentUser

    Gets the current user ready to be used for Appearition API requests using values entered in the Appearition Engine Manager.

    Declaration
    public UserProfile CurrentUser { get; set; }
    Property Value
    Type Description
    UserProfile

    The current user.

    HasInternetAccessToEms

    Checks for any internet access, including access to the EMS, on launch. A null value means that the check has not been made yet.

    Declaration
    public static bool? HasInternetAccessToEms { get; protected set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    The has internet access to EM.

    Instance

    Declaration
    public static AppearitionGate Instance { get; }
    Property Value
    Type Description
    AppearitionGate

    LogLevel

    Defines whether or not the Appearition SDK should log any message in the console. Either way, _errors will be logged properly.

    Declaration
    public static AppearitionLogger.LogLevel LogLevel { get; set; }
    Property Value
    Type Description
    AppearitionLogger.LogLevel

    Methods

    ConvertDateTimeToString(DateTime)

    Declaration
    public static string ConvertDateTimeToString(DateTime date)
    Parameters
    Type Name Description
    System.DateTime date
    Returns
    Type Description
    System.String

    ConvertStringToDateTime(String)

    Declaration
    public static DateTime ConvertStringToDateTime(string dateTimeString)
    Parameters
    Type Name Description
    System.String dateTimeString
    Returns
    Type Description
    System.DateTime

    GetCurrentDateAndTime()

    Using the format approved by the EMS, fetches the current date and time. This information will need to be used for the Learn Session, which you may want to submit if using this feature.

    Declaration
    public static string GetCurrentDateAndTime()
    Returns
    Type Description
    System.String

    PingEms(Action<Boolean>)

    Attempts to pings the EMS, and returns whether or not the ping was successful.

    API Requirement: Anonymous Token.

    Declaration
    public static void PingEms(Action<bool> callback)
    Parameters
    Type Name Description
    System.Action<System.Boolean> callback

    Callback.

    Extension Methods

    ObjectExtension.ToStream(Object)
    Back to top Appearition SDK for Unity API