/** @since Available in iOS 3.2 and later. */ public double getTime() { if (has(Keys.Time())) { NSNumber val = (NSNumber) get(Keys.Time()); return val.doubleValue(); } return 0; }
/** @since Available in iOS 3.2 and later. */ public NSError getError() { if (has(Keys.Error())) { NSError val = (NSError) get(Keys.Error()); return val; } return null; }
public CGRect getCropRect() { if (has(Keys.CropRect())) { NSValue val = (NSValue) get(Keys.CropRect()); return val.rectValue(); } return null; }
/** @since Available in iOS 3.2 and later. */ public UIImage getImage() { if (has(Keys.Image())) { UIImage val = (UIImage) get(Keys.Image()); return val; } return null; }
/** @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; }
/** @since Available in iOS 4.1 and later. */ public NSURL getReferenceURL() { if (has(Keys.ReferenceURL())) { NSURL val = (NSURL) get(Keys.ReferenceURL()); return val; } return null; }
public NSURL getMediaURL() { if (has(Keys.MediaURL())) { NSURL val = (NSURL) get(Keys.MediaURL()); return val; } return null; }
public String getMediaType() { if (has(Keys.MediaType())) { NSString val = (NSString) get(Keys.MediaType()); return val.toString(); } return null; }
/** @since Available in iOS 4.1 and later. */ public UIImagePickerControllerEditingInfo setMediaMetadata(Map<String, NSObject> mediaMetadata) { set(Keys.MediaMetadata(), NSDictionary.fromStringMap(mediaMetadata)); return this; }
/** @since Available in iOS 4.1 and later. */ public UIImagePickerControllerEditingInfo setReferenceURL(NSURL referenceURL) { set(Keys.ReferenceURL(), referenceURL); return this; }
public UIImagePickerControllerEditingInfo setMediaURL(NSURL mediaURL) { set(Keys.MediaURL(), mediaURL); return this; }
public UIImagePickerControllerEditingInfo setCropRect(CGRect cropRect) { set(Keys.CropRect(), NSValue.valueOf(cropRect)); return this; }
public UIImagePickerControllerEditingInfo setEditedImage(UIImage editedImage) { set(Keys.EditedImage(), editedImage); return this; }
public UIImagePickerControllerEditingInfo setOriginalImage(UIImage originalImage) { set(Keys.OriginalImage(), originalImage); return this; }
public UIImagePickerControllerEditingInfo setMediaType(String mediaType) { set(Keys.MediaType(), new NSString(mediaType)); return this; }