Ejemplo n.º 1
0
 /** @since Available in iOS 4.0 and later. */
 public long getHeight() {
   if (has(Keys.Height())) {
     NSNumber val = (NSNumber) get(Keys.Height());
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 2
0
 /** @since Available in iOS 7.0 and later. */
 public boolean allowsFrameReordering() {
   if (has(Keys.AllowFrameReordering())) {
     NSNumber val = (NSNumber) get(Keys.AllowFrameReordering());
     return val.booleanValue();
   }
   return false;
 }
Ejemplo n.º 3
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
 public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
Ejemplo n.º 5
0
 /** @since Available in iOS 7.0 and later. */
 public double getAverageNonDroppableFrameRate() {
   if (has(Keys.AverageNonDroppableFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.AverageNonDroppableFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Ejemplo n.º 6
0
 /** @since Available in iOS 7.0 and later. */
 public double getExpectedSourceFrameRate() {
   if (has(Keys.ExpectedSourceFrameRate())) {
     NSNumber val = (NSNumber) get(Keys.ExpectedSourceFrameRate());
     return val.doubleValue();
   }
   return 0;
 }
Ejemplo n.º 7
0
 public long getSize() {
   if (has(NSFileSystemAttribute.Size)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.Size);
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 8
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;
 }
Ejemplo n.º 9
0
 public long getFreeNodes() {
   if (has(NSFileSystemAttribute.FreeNodes)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.FreeNodes);
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 10
0
 /** @since Available in iOS 4.0 and later. */
 public long getWidth() {
   if (has(Keys.Width())) {
     NSNumber val = (NSNumber) get(Keys.Width());
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 11
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public CMVideoCodecType getCodec() {
   if (has(Keys.Codec())) {
     NSNumber val = (NSNumber) get(Keys.Codec());
     return CMVideoCodecType.valueOf(val.longValue());
   }
   return null;
 }
Ejemplo n.º 12
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAverageNonDroppableFrameRate(double averageNonDroppableFrameRate) {
   set(Keys.AverageNonDroppableFrameRate(), NSNumber.valueOf(averageNonDroppableFrameRate));
   return this;
 }
Ejemplo n.º 13
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setExpectedSourceFrameRate(double expectedSourceFrameRate) {
   set(Keys.ExpectedSourceFrameRate(), NSNumber.valueOf(expectedSourceFrameRate));
   return this;
 }
Ejemplo n.º 14
0
 /** @since Available in iOS 7.0 and later. */
 public AVVideoSettings setAllowsFrameReordering(boolean allowsFrameReordering) {
   set(Keys.AllowFrameReordering(), NSNumber.valueOf(allowsFrameReordering));
   return this;
 }
Ejemplo n.º 15
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setWidth(long width) {
   set(Keys.Width(), NSNumber.valueOf(width));
   return this;
 }
Ejemplo n.º 16
0
 /** @since Available in iOS 4.0 and later. */
 @WeaklyLinked
 public AVVideoSettings setCodec(CMVideoCodecType codec) {
   set(Keys.Codec(), NSNumber.valueOf(codec.value()));
   return this;
 }
Ejemplo n.º 17
0
 public NSFileSystemAttributes setFreeNodes(long freeNodes) {
   set(NSFileSystemAttribute.FreeNodes, NSNumber.valueOf(freeNodes));
   return this;
 }
Ejemplo n.º 18
0
 /** @since Available in iOS 2.0 and later. */
 public long getCurrentOffset() {
   NSNumber val = (NSNumber) getProperty(NSStreamProperty.FileCurrentOffset);
   return val.longValue();
 }
Ejemplo n.º 19
0
 public NSFileSystemAttributes setFreeSize(long freeSize) {
   set(NSFileSystemAttribute.FreeSize, NSNumber.valueOf(freeSize));
   return this;
 }
Ejemplo n.º 20
0
 /** @since Available in iOS 2.0 and later. */
 public NSStream setCurrentOffset(long offset) {
   setProperty(NSStreamProperty.FileCurrentOffset, NSNumber.valueOf(offset));
   return this;
 }
Ejemplo n.º 21
0
 public NSFileSystemAttributes setNodes(long nodes) {
   set(NSFileSystemAttribute.Nodes, NSNumber.valueOf(nodes));
   return this;
 }
Ejemplo n.º 22
0
 /** @since Available in iOS 7.0 and later. */
 public CBCentralManagerOptions setShowsPowerAlert(boolean showsPowerAlert) {
   set(Keys.ShowPowerAlert(), NSNumber.valueOf(showsPowerAlert));
   return this;
 }
Ejemplo n.º 23
0
 public NSFileSystemAttributes setSize(long size) {
   set(NSFileSystemAttribute.Size, NSNumber.valueOf(size));
   return this;
 }
Ejemplo n.º 24
0
 public NSNetServiceErrorUserInfo setErrorCode(NSNetServiceErrorCode errorCode) {
   set(Keys.ErrorCode(), NSNumber.valueOf(errorCode.value()));
   return this;
 }
Ejemplo n.º 25
0
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setHeight(long height) {
   set(Keys.Height(), NSNumber.valueOf(height));
   return this;
 }
 public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) {
   set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value()));
   return this;
 }
Ejemplo n.º 27
0
 public NSFileSystemAttributes setSystemNumber(long systemNumber) {
   set(NSFileSystemAttribute.Number, NSNumber.valueOf(systemNumber));
   return this;
 }