iOS SDK 버전

FBSDKShareVideo

@interfaceFBSDKShareVideo:NSObject<NSSecureCoding,NSCopying,NSObject,FBSDKShareMedia,FBSDKSharingValidation>
A video for sharing.
  • Convenience method to build a new video object from raw data.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithData:(nonnullNSData*)data;
    Swift
    convenienceinit(data:Data)
  • Convenience method to build a new video object with NSData and a previewPhoto.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithData:(nonnullNSData*)datapreviewPhoto:(nonnullFBSDKSharePhoto*)previewPhoto;
    Swift
    convenienceinit(data:Data,previewPhoto:FBSDKSharePhoto)
  • Convenience method to build a new video object with a PHAsset.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithVideoAsset:(nonnullPHAsset*)videoAsset;
    Swift
    convenienceinit(videoAsset:PHAsset)

    Parameters

  • Convenience method to build a new video object with a PHAsset and a previewPhoto.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithVideoAsset:(nonnullPHAsset*)videoAssetpreviewPhoto:(nonnullFBSDKSharePhoto*)previewPhoto;
    Swift
    convenienceinit(videoAsset:PHAsset,previewPhoto:FBSDKSharePhoto)

    Parameters

  • Convenience method to build a new video object with a videoURL.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithVideoURL:(nonnullNSURL*)videoURL;
    Swift
    convenienceinit(videoURL:URL)

    Parameters

  • Convenience method to build a new video object with a videoURL and a previewPhoto.

    Declaration

    Objective-C
    +(nonnullinstancetype)videoWithVideoURL:(nonnullNSURL*)videoURLpreviewPhoto:(nonnullFBSDKSharePhoto*)previewPhoto;
    Swift
    convenienceinit(videoURL:URL,previewPhoto:FBSDKSharePhoto)

    Parameters

  • The raw video data.

    Declaration

    Objective-C
    @property(nonatomic,strong,readwrite,nullable)NSData*data;
    Swift
    vardata:Data?{getset}

    Return Value

    The video data.
  • The representation of the video in the Photos library.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)PHAsset*videoAsset;
    Swift
    @NSCopyingvarvideoAsset:PHAsset?{getset}

    Return Value

    PHAsset that represents the video in the Photos library.
  • The file URL to the video.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)NSURL*videoURL;
    Swift
    varvideoURL:URL?{getset}

    Return Value

    URL that points to the location of the video on disk
  • The photo that represents the video.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite,nullable)FBSDKSharePhoto*previewPhoto;
    Swift
    @NSCopyingvarpreviewPhoto:FBSDKSharePhoto?{getset}

    Return Value

    The photo
  • Compares the receiver to another video.

    Declaration

    Objective-C
    -(BOOL)isEqualToShareVideo:(nonnullFBSDKShareVideo*)video;
    Swift
    funcisEqual(tovideo:ShareVideo)->Bool

    Parameters

    Return Value

    YES if the receiver’s values are equal to the other video’s values; otherwise NO