コード例 #1
0
 /** @since Available in iOS 7.0 and later. */
 public boolean showsPowerAlert() {
   if (has(Keys.ShowPowerAlert())) {
     NSNumber val = (NSNumber) get(Keys.ShowPowerAlert());
     return val.booleanValue();
   }
   return false;
 }
コード例 #2
0
 /** @since Available in iOS 7.0 and later. */
 public CBCentralManagerOptions setShowsPowerAlert(boolean showsPowerAlert) {
   set(Keys.ShowPowerAlert(), NSNumber.valueOf(showsPowerAlert));
   return this;
 }