Package org.robovm.apple.photos
Class PHLivePhoto
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.photos.PHLivePhoto
- All Implemented Interfaces:
NSCoding,NSItemProviderReading,NSObjectProtocol,NSSecureCoding,ObjCProtocol
public class PHLivePhoto extends NSObject implements NSSecureCoding, NSItemProviderReading
- Since:
- Available in iOS 9.1 and later.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPHLivePhoto.PHLivePhotoPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields Modifier and Type Field Description static intRequestIDInvalid -
Constructor Summary
Constructors Modifier Constructor Description protectedPHLivePhoto()PHLivePhoto(NSCoder coder)protectedPHLivePhoto(NSObject.Handle h, long handle)protectedPHLivePhoto(NSObject.SkipInit skipInit) -
Method Summary
Modifier and Type Method Description static voidcancelLivePhotoRequest(int requestID)static PHLivePhotocreateProviderDataObject(NSData data, String typeIdentifier)voidencode(NSCoder coder)static NSArray<NSString>getReadableTypeIdentifiersForItemProvider()CGSizegetSize()static StringInfoCancelledKey()static StringInfoErrorKey()static StringInfoIsDegradedKey()protected longinit(NSCoder coder)static intrequestLivePhoto(NSArray<NSURL> fileURLs, UIImage image, CGSize targetSize, PHImageContentMode contentMode, VoidBlock2<PHLivePhoto,NSDictionary<?,?>> resultHandler)static StringShouldRenderAtPlaybackTime()static booleansupportsSecureCoding()Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Field Details
-
RequestIDInvalid
public static final int RequestIDInvalid- See Also:
- Constant Field Values
-
-
Constructor Details
-
PHLivePhoto
protected PHLivePhoto() -
PHLivePhoto
-
PHLivePhoto
-
PHLivePhoto
-
-
Method Details
-
getSize
- Since:
- Available in iOS 9.1 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
getReadableTypeIdentifiersForItemProvider
-
InfoErrorKey
- Since:
- Available in iOS 9.1 and later.
-
InfoIsDegradedKey
- Since:
- Available in iOS 9.1 and later.
-
InfoCancelledKey
- Since:
- Available in iOS 9.1 and later.
-
ShouldRenderAtPlaybackTime
- Since:
- Available in iOS 11.0 and later.
-
requestLivePhoto
public static int requestLivePhoto(NSArray<NSURL> fileURLs, UIImage image, CGSize targetSize, PHImageContentMode contentMode, VoidBlock2<PHLivePhoto,NSDictionary<?,?>> resultHandler)- Since:
- Available in iOS 9.1 and later.
-
cancelLivePhotoRequest
public static void cancelLivePhotoRequest(int requestID)- Since:
- Available in iOS 9.1 and later.
-
encode
-
init
-
createProviderDataObject
public static PHLivePhoto createProviderDataObject(NSData data, String typeIdentifier) throws NSErrorException- Throws:
NSErrorException
-