コード例 #1
0
 /** @since Available in iOS 4.1 and later. */
 public Map<String, NSObject> getMediaMetadata() {
   if (has(Keys.MediaMetadata())) {
     NSDictionary val = (NSDictionary) get(Keys.MediaMetadata());
     return val.asStringMap();
   }
   return null;
 }
コード例 #2
0
 /** @since Available in iOS 7.0 and later. */
 public boolean isExpired() {
   if (data.containsKey(IsExpiredKey())) {
     NSNumber val = (NSNumber) data.get(IsExpiredKey());
     return val.booleanValue();
   }
   return false;
 }
コード例 #3
0
ファイル: AVVideoSettings.java プロジェクト: kxlcn/robovm
 /** @since Available in iOS 4.0 and later. */
 public AVVideoSettings setPixelAspectRatio(AVPixelAspectRatio pixelAspectRatio) {
   NSDictionary<NSString, NSObject> val = new NSMutableDictionary<>();
   val.put(AVPixelAspectRatio.HorizontalSpacing(), pixelAspectRatio.getHorizontalSpacing());
   val.put(AVPixelAspectRatio.VerticalSpacing(), pixelAspectRatio.getVerticalSpacing());
   set(Keys.PixelAspectRatio(), val);
   return this;
 }
コード例 #4
0
 /** @since Available in iOS 7.0 and later. */
 public boolean isVolumePurchase() {
   if (data.containsKey(IsVolumePurchaseKey())) {
     NSNumber val = (NSNumber) data.get(IsVolumePurchaseKey());
     return val.booleanValue();
   }
   return false;
 }
コード例 #5
0
 /** @since Available in iOS 4.0 and later. */
 public String getAirline() {
   if (data.containsKey(AirlineKey())) {
     NSString val = (NSString) data.get(AirlineKey());
     return val.toString();
   }
   return null;
 }
コード例 #6
0
 /** @since Available in iOS 4.0 and later. */
 public String getFlight() {
   if (data.containsKey(FlightKey())) {
     NSString val = (NSString) data.get(FlightKey());
     return val.toString();
   }
   return null;
 }
コード例 #7
0
ファイル: AVVideoSettings.java プロジェクト: kxlcn/robovm
 /** @since Available in iOS 4.0 and later. */
 public AVPixelAspectRatio getPixelAspectRatio() {
   if (has(Keys.PixelAspectRatio())) {
     NSDictionary<NSString, NSObject> val =
         (NSDictionary<NSString, NSObject>) get(Keys.PixelAspectRatio());
     AVPixelAspectRatio result =
         new AVPixelAspectRatio(
             val.getLong(AVPixelAspectRatio.HorizontalSpacing(), 0),
             val.getLong(AVPixelAspectRatio.VerticalSpacing(), 0));
     return result;
   }
   return null;
 }
コード例 #8
0
 /** @since Available in iOS 4.1 and later. */
 public UIImagePickerControllerEditingInfo setMediaMetadata(Map<String, NSObject> mediaMetadata) {
   set(Keys.MediaMetadata(), NSDictionary.fromStringMap(mediaMetadata));
   return this;
 }
コード例 #9
0
 /** @since Available in iOS 5.0 and later. */
 @WeaklyLinked
 public CTAttributedStringAttributes getTitleCoreTextAttributes(UIControlState state) {
   NSDictionary<NSString, ?> dict = getTitleTextAttributesDictionary(state);
   if (dict == null) return null;
   return new CTAttributedStringAttributes(dict.as(CFDictionary.class));
 }
コード例 #10
0
 @Override
 public String toString() {
   if (data != null) return data.toString();
   return super.toString();
 }
コード例 #11
0
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) {
   data.put(IsVolumePurchaseKey(), NSNumber.valueOf(volumePurchase));
   return this;
 }
コード例 #12
0
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setRevoked(boolean revoked) {
   data.put(IsRevokedKey(), NSNumber.valueOf(revoked));
   return this;
 }
コード例 #13
0
 /** @since Available in iOS 7.0 and later. */
 public SKReceiptRefreshRequestOptions setExpired(boolean expired) {
   data.put(IsExpiredKey(), NSNumber.valueOf(expired));
   return this;
 }