/// <summary>
        /// Initialize the SDK with the list of services to start.
        /// This may be called only once per application process lifetime.
        /// </summary>
        /// <param name="appSecret">A unique and secret key used to identify the application.</param>
        /// <param name="services">List of services to use.</param>
        public static void Start(string appSecret, params Type[] services)
        {
            string parsedSecret;

            try
            {
                parsedSecret = GetSecretForPlatform(appSecret, PlatformIdentifier);
            }
            catch (ArgumentException ex)
            {
                MobileCenterLog.Assert(MobileCenterLog.LogTag, ex.Message);
                return;
            }
            AndroidMobileCenter.Start(SetWrapperSdkAndGetApplication(), parsedSecret, GetServices(services));
        }
 /// <summary>
 /// Initialize the SDK with the list of services to start.
 /// This may be called only once per application process lifetime.
 /// </summary>
 /// <param name="appSecret">A unique and secret key used to identify the application.</param>
 /// <param name="services">List of services to use.</param>
 public static void Start(string appSecret, params Type[] services)
 {
     AndroidMobileCenter.Start(SetWrapperSdkAndGetApplication(), appSecret, GetServices(services));
 }
 /// <summary>
 /// Start services.
 /// This may be called only once per service per application process lifetime.
 /// </summary>
 /// <param name="services">List of services to use.</param>
 public static void Start(params Type[] services)
 {
     AndroidMobileCenter.Start(GetServices(services));
 }
Exemplo n.º 4
0
 static void PlatformStart(params Type[] services)
 {
     AndroidMobileCenter.Start(GetServices(services));
 }