Class

WCSessionFile

Information about a file currently being transferred between an iOS app and WatchKit extension.

Declaration

@interface WCSessionFile : NSObject

Overview

You do not create instances of this class directly. When you initiate a file transfer using the transferFile:metadata: method of your app’s WCSession object, the session creates an instance when it queues the file for transfer. You can get a list of in-progress transfers initiated by your app from the session’s outstandingFileTransfers property. When a file is received by your app, the corresponding file object is delivered directly to your session’s delegate.

The file object includes the URL of the file on the local system and an optional dictionary of keys and values that accompany the file.

Topics

Getting the File Information

fileURL

The URL of the file that was received.

metadata

A dictionary of additional information that was sent with the file.

Relationships

Inherits From

See Also

Data Objects

WCSessionFileTransfer

Information about in-progress file transfers.

WCSessionUserInfoTransfer

Information about in-progress data transfers.