SCSFileTransferRequest
@interface SCSFileTransferRequest : NSObject
Information about a file transfer request.
-
Determines if the request is still active. This property returns
false/NOafter the file transfer has completed regardless of whether the transfer was successful.Declaration
Objective-C
@property (readonly, getter=isActive, assign, nonatomic) BOOL active;Swift
var isActive: Bool { get } -
UIImagethat has been attached to this request.Declaration
Objective-C
@property (readonly, strong, nonatomic) UIImage *image;Swift
var image: UIImage! { get } -
Sends the specified image to the agent.
Declaration
Objective-C
- (void)sendImage:(UIImage *)image;Swift
func sendImage(_ image: UIImage!)Parameters
imageUIImagewe are sending through this request. -
Adds an instance of an
idimplementing theSCSFileTransferDelegateprotocol to the list of delegates to notify.Declaration
Objective-C
- (void)addDelegate:(id<SCSFileTransferDelegate>)delegate;Parameters
delegateidinstance to add. -
Adds an instance of an
idimplementing theSCSFileTransferDelegateprotocol to the list of delegates to notify.Declaration
Objective-C
- (void)addDelegate:(id<SCSFileTransferDelegate>)delegate queue:(dispatch_queue_t)queue;Parameters
delegateidinstance to add.queuedispatch_queue_tyou wish your events to be called back on. -
Removes the specified delegate from receiving events in the future.
Note
Once the file transfer receives a message that it is expired, completed or failed. All delegates will be removed automatically
Declaration
Objective-C
- (void)removeDelegate:(id<SCSFileTransferDelegate>)delegate;Parameters
delegateThe
SCSFileTransferDelegatewhich will be removed.
Install in Dash
SCSFileTransferRequest Class Reference