public static SCDeepLinking GetInstance(SCConfig config, object context)
 {
     if (mDeepLinking == null)
     {
         mDeepLinking = new SCDeepLinking(config, context);
     }
     return(mDeepLinking);
 }
        public SCDeepLinking(SCConfig config, object context)
        {
            this.mConfig     = config;
            this.mContext    = context;
            this.mPreference = new SCPreference(context);
            this.mSessions   = new Dictionary <string, SCSession>();

            //if (context == typeof(SCDeepLinkingApp))
            //{

            //}
        }
        public static SCConfig InitFromManifest()
        {
            try
            {
                String authToken = "";
                if (String.IsNullOrWhiteSpace(authToken))
                {
                    return(null);
                }
                SCConfig config = new SCConfig(authToken);

                String environment = "";
                if (!String.IsNullOrWhiteSpace(environment))
                {
                    switch (environment.ToLowerInvariant())
                    {
                    case "production":
                        config.Environment = KeyValues.ENVIRONMENT_PRODUCTION;
                        break;

                    case "sandbox":
                        config.Environment = KeyValues.ENVIRONMENT_SANDBOX;
                        break;
                    }
                }

                int logLevel = 0;
                if (logLevel > -1)
                {
                    config.LogLevel = logLevel;
                }

                return(config);
            }
            catch (Exception e)
            {
                return(null);
            }
        }
        public static SCConfig InitFromManifest()
        {
            try
            {
                String authToken = "";
                if (String.IsNullOrWhiteSpace(authToken))
                {
                    return null;
                }
                SCConfig config = new SCConfig(authToken);

                String environment = "";
                if (!String.IsNullOrWhiteSpace(environment))
                {
                    switch (environment.ToLowerInvariant())
                    {
                        case "production":
                            config.Environment = KeyValues.ENVIRONMENT_PRODUCTION;
                            break;
                        case "sandbox":
                            config.Environment = KeyValues.ENVIRONMENT_SANDBOX;
                            break;
                    }
                }

                int logLevel = 0;
                if (logLevel > -1)
                {
                    config.LogLevel = logLevel;
                }

                return config;
            }
            catch(Exception e)
            {
                return null;
            }
        }