FBSDKGraphRequestDataAttachment

A container class for data attachments so that additional metadata can be provided about the attachment.

Superclass:NSObject
Declared in:FBSDKGraphRequestDataAttachment.h
ทรัพย์สิน
contentType

The content type for the attachment.

@property (nonatomic, copy, readonly) NSString *contentType;
ให้คำรับรองไว้ใน: FBSDKGraphRequestDataAttachment.h
data

The attachment data.

@property (nonatomic, strong, readonly) NSData *data;
ให้คำรับรองไว้ใน: FBSDKGraphRequestDataAttachment.h
filename

The filename for the attachment.

@property (nonatomic, copy, readonly) NSString *filename;
ให้คำรับรองไว้ใน: FBSDKGraphRequestDataAttachment.h
วิธีการทันใจ
initWithData:filename:contentType:

Initializes the receiver with the attachment data and metadata.

พารามิเตอร์คำอธิบาย
data

The attachment data (retained, not copied)

filename

The filename for the attachment

contentType

The content type for the attachment

- (instancetype)
initWithData: (NSData *)data
filename: (NSString *)filename
contentType: (NSString *)contentType
NS_DESIGNATED_INITIALIZER;
ให้คำรับรองไว้ใน: FBSDKGraphRequestDataAttachment.h