Class 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.
  • Field Details

  • Constructor Details

    • PHLivePhoto

      protected PHLivePhoto()
    • PHLivePhoto

      protected PHLivePhoto​(NSObject.Handle h, long handle)
    • PHLivePhoto

      protected PHLivePhoto​(NSObject.SkipInit skipInit)
    • PHLivePhoto

      public PHLivePhoto​(NSCoder coder)
  • Method Details

    • getSize

      public CGSize getSize()
      Since:
      Available in iOS 9.1 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getReadableTypeIdentifiersForItemProvider

      public static NSArray<NSString> getReadableTypeIdentifiersForItemProvider()
    • InfoErrorKey

      public static String InfoErrorKey()
      Since:
      Available in iOS 9.1 and later.
    • InfoIsDegradedKey

      public static String InfoIsDegradedKey()
      Since:
      Available in iOS 9.1 and later.
    • InfoCancelledKey

      public static String InfoCancelledKey()
      Since:
      Available in iOS 9.1 and later.
    • ShouldRenderAtPlaybackTime

      public static String 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

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)
    • createProviderDataObject

      public static PHLivePhoto createProviderDataObject​(NSData data, String typeIdentifier) throws NSErrorException
      Throws:
      NSErrorException