public AVAudioQuality getAudioQuality() {
   if (has(Keys.AudioQuality())) {
     NSNumber val = (NSNumber) get(Keys.AudioQuality());
     return AVAudioQuality.valueOf(val.longValue());
   }
   return null;
 }
Ejemplo n.º 2
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.º 3
0
 public NSNetServiceErrorCode getErrorCode() {
   if (has(Keys.ErrorCode())) {
     NSNumber val = (NSNumber) get(Keys.ErrorCode());
     return NSNetServiceErrorCode.valueOf(val.longValue());
   }
   return null;
 }
Ejemplo n.º 4
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.º 5
0
 public long getFreeNodes() {
   if (has(NSFileSystemAttribute.FreeNodes)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.FreeNodes);
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 6
0
 public long getSize() {
   if (has(NSFileSystemAttribute.Size)) {
     NSNumber val = (NSNumber) get(NSFileSystemAttribute.Size);
     return val.longValue();
   }
   return 0;
 }
Ejemplo n.º 7
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.º 8
0
 @SuppressWarnings("unchecked")
 @MarshalsPointer
 public static List<CVPixelFormatType> toObject(
     Class<? extends NSObject> cls, long handle, long flags) {
   NSArray<NSNumber> o = (NSArray<NSNumber>) NSObject.Marshaler.toObject(cls, handle, flags);
   if (o == null) {
     return null;
   }
   List<CVPixelFormatType> list = new ArrayList<>();
   for (NSNumber n : o) {
     list.add(CVPixelFormatType.valueOf(n.longValue()));
   }
   return list;
 }
Ejemplo n.º 9
0
 /** @since Available in iOS 2.0 and later. */
 public long getCurrentOffset() {
   NSNumber val = (NSNumber) getProperty(NSStreamProperty.FileCurrentOffset);
   return val.longValue();
 }