コード例 #1
0
 private void onStartSwiper() {
   if (ex_cardSwiper == null) {
     ex_cardSwiper = new CardSwiper();
     ex_cardSwiper.onCreate(this, this);
   }
   ex_cardSwiper.onStart();
 }
コード例 #2
0
 @Override
 protected void onPause() {
   isPause = true;
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onPause();
   }
   if (ex_soundWave != null) {
     ex_soundWave.onPause();
   }
   if (ex_codeScanner != null) {
     ex_codeScanner.onPause();
   }
   super.onPause();
 }
コード例 #3
0
  @Override
  protected void onDestroy() {
    Log.d(TAG, this + "onDestroy");

    if (ex_cardSwiper != null) {
      ex_cardSwiper.onDestroy();
      ex_cardSwiper = null;
    }
    if (ex_soundWave != null) {
      ex_soundWave.onDestroy();
      ex_soundWave = null;
    }
    if (ex_codeScanner != null) {
      ex_codeScanner.onDestroy();
      ex_codeScanner = null;
    }
    super.onDestroy();
  };
コード例 #4
0
 @Override
 protected void onResume() {
   if (!isPause) {
     super.onResume();
     return;
   } else {
     isPause = false;
   }
   Log.d(TAG, "NearFieldController onResume");
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onStart();
   }
   if (ex_soundWave != null) {
     ex_soundWave.onStart();
   }
   if (ex_codeScanner != null) {
     ex_codeScanner.onResume();
   }
   super.onResume();
 }
コード例 #5
0
 private void onStopSwiper() {
   if (ex_cardSwiper != null) {
     ex_cardSwiper.onPause();
   }
 }