public static AnySDKPush getInstance() { if( null == _instance ) { _instance = new AnySDKPush(); } return _instance; }
public bool callBoolFuncWithParam(string functionName, AnySDKParam param) { List <AnySDKParam> list = new List <AnySDKParam>(); list.Add(param); return(AnySDKPush.AnySDKPush_nativeCallBoolFuncWithParam(functionName, list.ToArray(), list.Count)); }
public void callFuncWithParam(string functionName, AnySDKParam param) { List <AnySDKParam> list = new List <AnySDKParam>(); list.Add(param); AnySDKPush.AnySDKPush_nativeCallFuncWithParam(functionName, list.ToArray(), list.Count); }
public bool callBoolFuncWithParam(string functionName, List <AnySDKParam> param = null) { if (param == null) { return(AnySDKPush.AnySDKPush_nativeCallBoolFuncWithParam(functionName, null, 0)); } return(AnySDKPush.AnySDKPush_nativeCallBoolFuncWithParam(functionName, param.ToArray(), param.Count)); }
public static AnySDKPush getInstance() { if (AnySDKPush._instance == null) { AnySDKPush._instance = new AnySDKPush(); } return(AnySDKPush._instance); }
public string getSDKVersion() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Capacity = 1024; AnySDKPush.AnySDKPush_nativeGetSDKVersion(stringBuilder); return(stringBuilder.ToString()); }
public static AnySDKPush getInstance() { if (null == _instance) { _instance = new AnySDKPush(); } return(_instance); }
public string callStringFuncWithParam(string functionName, AnySDKParam param) { List <AnySDKParam> list = new List <AnySDKParam>(); list.Add(param); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Capacity = 1024; AnySDKPush.AnySDKPush_nativeCallStringFuncWithParam(functionName, list.ToArray(), list.Count, stringBuilder); return(stringBuilder.ToString()); }
public void callFuncWithParam(string functionName, List <AnySDKParam> param = null) { if (param == null) { AnySDKPush.AnySDKPush_nativeCallFuncWithParam(functionName, null, 0); } else { AnySDKPush.AnySDKPush_nativeCallFuncWithParam(functionName, param.ToArray(), param.Count); } }
void OnGUI() { GUI.color = Color.white; GUI.skin.button.fontSize = 30; if (GUI.Button(new Rect(5, 5, Screen.width - 10, 70), "startPush")) { AnySDKPush.getInstance().setDebugMode(true); startPush(); } if (GUI.Button(new Rect(5, 80, Screen.width - 10, 70), "closePush")) { closePush(); } if (GUI.Button(new Rect(5, 155, Screen.width - 10, 70), "setAlias")) { setAlias("AnySDK"); } if (GUI.Button(new Rect(5, 230, Screen.width - 10, 70), "delAlias")) { delAlias("AnySDK"); } if (GUI.Button(new Rect(5, 305, Screen.width - 10, 70), "setTags")) { List <string> tags = new List <string>(); tags.Add("easy"); tags.Add("fast"); setTags(tags); } if (GUI.Button(new Rect(5, 380, Screen.width - 10, 70), "delTags")) { List <string> tags = new List <string>(); tags.Add("easy"); tags.Add("fast"); delTags(tags); } if (GUI.Button(new Rect(5, 455, Screen.width - 10, 70), "return")) { Destroy(GetComponent("TestPushPlugin")); this.gameObject.AddComponent("Test"); } }
public string callStringFuncWithParam(string functionName, List <AnySDKParam> param = null) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Capacity = 1024; if (param == null) { AnySDKPush.AnySDKPush_nativeCallStringFuncWithParam(functionName, null, 0, stringBuilder); } else { AnySDKPush.AnySDKPush_nativeCallStringFuncWithParam(functionName, param.ToArray(), param.Count, stringBuilder); } return(stringBuilder.ToString()); }
void delTags(List <string> tags) { AnySDKPush.getInstance().delTags(tags); }
void setTags(List <string> tags) { AnySDKPush.getInstance().setTags(tags); }
void delAlias(string alias) { AnySDKPush.getInstance().delAlias(alias); }
void setAlias(string alias) { AnySDKPush.getInstance().setAlias(alias); }
void closePush() { AnySDKPush.getInstance().closePush(); }
void startPush() { AnySDKPush.getInstance().startPush(); }
public void setAlias(string alia) { AnySDKPush.AnySDKPush_nativeSetAlias(alia); }
public void delAlias(string alia) { AnySDKPush.AnySDKPush_nativeDelAlias(alia); }
public void closePush() { AnySDKPush.AnySDKPush_nativeClosePush(); }
void Start() { AnySDKPush.getInstance().setListener(this, "PushExternalCall"); }
public void delTags(List <string> tags) { string tags2 = AnySDKUtil.ListToString(tags); AnySDKPush.AnySDKPush_nativeDelTags(tags2); }
public void setDebugMode(bool bDebug) { AnySDKPush.AnySDKPush_nativeSetDebugMode(bDebug); }
public bool isFunctionSupported(string functionName) { return(AnySDKPush.AnySDKPush_nativeIsFunctionSupported(functionName)); }
private void Start() { this._instance = AnySDKPush.getInstance(); this._instance.setListener(this, "PushExternalCall"); }
public void startPush() { AnySDKPush.AnySDKPush_nativeStartPush(); }