コード例 #1
0
 /**
  * アラーム音の URI を設定する。
  *
  * @param uri アラーム音の URI を表す文字列
  */
 public void setRingtoneUri(@NonNull String uri) {
   Preconditions.notNull(uri, "Alarm ringtone required!!");
   this.putExtra(RINGTONE_URI, uri);
 }
コード例 #2
0
 /**
  * アラーム情報を一意に識別する情報を設定する。
  *
  * @param key 識別子
  */
 public void setAlarmKey(@NonNull Long key) {
   Preconditions.notNull(key, "Alarm key required!!");
   this.setAlarmKey(String.valueOf(key));
 }
コード例 #3
0
 /**
  * @param key 文字列識別子
  * @see #setAlarmKey(Long)
  */
 public void setAlarmKey(@NonNull String key) {
   Preconditions.notNull(key, "Alarm key required!!");
   this.putExtra(ALARM_KEY, key);
 }