MediaAttachment
@objcMembers
@objc(GetSocialMediaAttachment)
public final class MediaAttachment : NSObject
Describe media attachment.
-
Video url.
Declaration
Swift
public internal(set) var videoUrl: String? { get }
-
Image url.
Declaration
Swift
public internal(set) var imageUrl: String? { get }
-
Create an attachment with image url.
Declaration
Swift
@objc(withImageUrl:) public static func imageUrl(_ imageUrl: String) -> MediaAttachment
Parameters
imageUrl
Url of the image.
Return Value
New
MediaAttachment
instance. -
Create an attachment with image.
Declaration
Swift
@objc(withImage:) public static func image(_ image: UIImage) -> MediaAttachment
Parameters
image
Image instance.
Return Value
New
MediaAttachment
instance. -
Create an attachment with video url.
Declaration
Swift
@objc(withVideoUrl:) public static func videoUrl(_ videoUrl: String) -> MediaAttachment
Parameters
videoUrl
Url of the video.
Return Value
New
MediaAttachment
instance. -
Create an attachment with video.
Declaration
Swift
@objc(withVideo:) public static func video(_ video: Data) -> MediaAttachment
Parameters
video
Video content.
Return Value
New
MediaAttachment
instance. -
Description.
Declaration
Swift
public override var description: String { get }