/// <summary> /// Initialize the SDK for a windows phone app. /// </summary> /// <param name="appId">App id for the app on appacitive.</param> /// <param name="apikey">API key for the app on appacitive.</param> /// <param name="environment">The environment to use - sandbox or live.</param> /// <param name="settings">Additional settings for initializing the SDK.</param> public static void Initialize(string appId, string apikey, Environment environment, AppacitiveSettings settings = null) { #if WINDOWS_PHONE InternalApp.Initialize(Platforms.WP8, appId, apikey, environment, settings); #elif WINDOWS_PHONE7 InternalApp.Initialize(Platforms.WP7, appId, apikey, environment, settings); #endif }
/// <summary> /// Initialize the Appacitive SDK with a customized platform implementation for windows phone app. /// </summary> /// <param name="platform">Custom device platform implementation</param> /// <param name="appId">App id for the app on appacitive.</param> /// <param name="apikey">API key for the app on appacitive.</param> /// <param name="environment">The environment to use - sandbox or live.</param> /// <param name="settings">Additional settings for initializing the SDK.</param> public static void Initialize(IDevicePlatform platform, string appId, string apikey, Environment environment, AppacitiveSettings settings = null) { InternalApp.Initialize(platform, appId, apikey, environment, settings); }
/// <summary> /// Initialize the SDK for use inside an ASP.net application. /// </summary> /// <param name="appId">App id for the app on appacitive.</param> /// <param name="apikey">API key for the app on appacitive.</param> /// <param name="environment">The environment to use - sandbox or live.</param> /// <param name="settings">Additional settings for initializing the SDK.</param> public static void InitializeForAspnet(string appId, string apikey, Environment environment, AppacitiveSettings settings = null) { InternalApp.Initialize(Platforms.Aspnet, appId, apikey, environment, settings); }