private ProjectKoraiTelephonyPlugin(MyPhonePlugins.IMyPhoneCallHandler callHandler) { this.callHandler = callHandler; callHandler.OnCallStatusChanged += new MyPhonePlugins.CallInfoHandler(callHandler_OnCallStatusChanged); callHandler.OnMyPhoneStatusChanged += new MyPhonePlugins.MyPhoneStatusHandler(callHandler_OnMyPhoneStatusChanged); }
public static void Loader(MyPhonePlugins.IMyPhoneCallHandler callHandler) { lock (lockObj) { instance = new CallTriggerCmdPlugin(callHandler); instance.StartServiceAsync(); } }
// Constructor for plugin, to add event handler private SalesForce(MyPhonePlugins.IMyPhoneCallHandler callHandler) { this.callHandler = callHandler; callHandler.OnCallStatusChanged += new MyPhonePlugins.CallInfoHandler(callHandler_OnCallStatusChanged); }
public static void Loader(MyPhonePlugins.IMyPhoneCallHandler callHandler) { instance = new SalesForce(callHandler); }