protected void OnDestroy() { base.OnDestroy(); disable(); if (PsObject != null) { PsObject = null; } if (emdkManager != null) { emdkManager.Release(); emdkManager = null; } }
public void OnOpened(EMDKManager emdkManager) { this.emdkManager = emdkManager; try { PsObject = (PersonalShopperMgr)this.emdkManager.GetInstance(Symbol.XamarinEMDK.EMDKManager.FEATURE_TYPE.Personalshopper); } catch (Exception e) { textViewStatus.Text = string.Empty; textViewStatus.SetText("Status: " + e.Message, TextView.BufferType.Normal); } if (PsObject == null) { textViewStatus.Text = string.Empty; textViewStatus.SetText("Status: " + "PersonalShopper NOT Feature supported", TextView.BufferType.Normal); } else { enable(); } }