iOS SDK Version

FBSDKGraphRequestDataAttachment

@interfaceFBSDKGraphRequestDataAttachment:NSObject
A container class for data attachments so that additional metadata can be provided about the attachment.
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    -(instancetype)initNS_UNAVAILABLE;
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    +(instancetype)newNS_UNAVAILABLE;
  • Initializes the receiver with the attachment data and metadata.

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithData:(nonnullNSData*)datafilename:(nonnullNSString*)filenamecontentType:(nonnullNSString*)contentType;
    Swift
    init(data:Data,filename:String,contentType:String)

    Parameters

    data
    The attachment data (retained, not copied)
    filename
    The filename for the attachment
    contentType
    The content type for the attachment
  • The content type for the attachment.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)NSString*_NonnullcontentType;
    Swift
    varcontentType:String{get}
  • The attachment data.

    Declaration

    Objective-C
    @property(nonatomic,strong,readonly)NSData*_Nonnulldata;
    Swift
    vardata:Data{get}
  • The filename for the attachment.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)NSString*_Nonnullfilename;
    Swift
    varfilename:String{get}