public override void OnSaveInstanceState(Android.OS.Bundle outState) { base.OnSaveInstanceState(outState); outState.PutInt(KEY_RETRY_COUNTER, mRetryCounter); outState.PutBoolean(KEY_HANDLE_FULL_WALLET_WHEN_READY, mHandleFullWalletWhenReady); outState.PutInt(KEY_RETRY_FULL_WALLET_COUNTER, mRetryLoadFullWalletCount); }
public override void OnTokenError(Exception exception, Bundle bundle) { string MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; Log.Info(MethodName, exception.Message); Intent intent = new Intent(); intent.SetAction(HMSPushAction); intent.PutExtra(HMSPushReceiver.Method, System.Reflection.MethodBase.GetCurrentMethod().Name); Android.OS.Bundle bundleException = new Android.OS.Bundle(); bundleException.PutString(HMSPushReceiver.Message, exception.Message); bundleException.PutInt(HMSPushReceiver.ErrorCode, ((BaseException)exception).ErrorCode); intent.PutExtra(HMSPushReceiver.Exception, bundleException); intent.PutExtra(HMSPushReceiver.Bundle, bundle); SendBroadcast(intent); }
public override void OnMessageDelivered(string msgId, Exception exception) { // Obtain the error code and description. string MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name; Log.Info(MethodName, $"msgId:{msgId}\nSituation:{exception.Message}"); Intent intent = new Intent(); intent.SetAction(HMSPushAction); intent.PutExtra(HMSPushReceiver.Method, System.Reflection.MethodBase.GetCurrentMethod().Name); intent.PutExtra(HMSPushReceiver.MsgId, msgId); Android.OS.Bundle bundle = new Android.OS.Bundle(); bundle.PutString(HMSPushReceiver.Message, exception.Message); bundle.PutInt(HMSPushReceiver.ErrorCode, ((BaseException)exception).ErrorCode); intent.PutExtra(HMSPushReceiver.Exception, bundle); SendBroadcast(intent); }
public override void OnSaveInstanceState(Android.OS.Bundle outState) { base.OnSaveInstanceState(outState); outState.PutInt("position", _position); outState.PutBoolean("enableProgressButton", _enableProgressButton); }