Ejemplo n.º 1
0
 public override ApolloResult Initialize(ApolloInfo platformInfo)
 {
     ApolloCommon.ApolloInfo = platformInfo;
     if (platformInfo == null)
     {
         throw new Exception("ApolloInfo could not be null!!");
     }
     ADebug.Log(string.Format("Apollo Init QQAppId:{0}, WXAppId:{1}, pluginName:{2}", platformInfo.QQAppId, platformInfo.WXAppId, platformInfo.PluginName));
     if (string.IsNullOrEmpty(platformInfo.PluginName))
     {
         ApolloCommon.ApolloInfo.PluginName = "MSDK";
     }
     MsdkAdapter.InnerInstall();
     return((ApolloResult)Apollo.apollo_init(platformInfo.ServiceId, platformInfo.MaxMessageBufferSize, ApolloCommon.ApolloInfo.PluginName));
 }
Ejemplo n.º 2
0
 public abstract ApolloResult Initialize(ApolloInfo platformInfo);