File
open class File : Object, JSONCodable
extension File : Mappable
Class that represents a file in the backend holding all metadata of the file, but don’t hold the data itself.
-
_id
property of the file.Declaration
Swift
@objc open dynamic var fileId: String?
-
_filename
property of the file.Declaration
Swift
@objc open dynamic var fileName: String?
-
size
property of the file.Declaration
Swift
public let size: RealmOptional<Int64>
-
mimeType
property of the file.Declaration
Swift
@objc open dynamic var mimeType: String?
-
_public
property of the file, which represents if the file is accessible without need of credentials.Declaration
Swift
@objc open dynamic var publicAccessible: Bool
-
Temporary download URL String of the file.
Declaration
Swift
@objc open dynamic var download: String?
-
Temporary download URL of the file.
Declaration
Swift
@objc open dynamic var downloadURL: URL? { get set }
-
Temporary upload URL String of the file.
Declaration
Swift
@objc open dynamic var upload: String?
-
Temporary upload URL of the file.
Declaration
Swift
@objc open dynamic var uploadURL: URL? { get set }
-
Expiration data of the
downloadURL
.Declaration
Swift
@objc open dynamic var expiresAt: Date?
-
ETag header used for validate the local cache
Declaration
Swift
@objc open internal(set) dynamic var etag: String? { get }
-
Local path URL String for the cached file
Declaration
Swift
@objc open internal(set) dynamic var path: String? { get set }
-
Local path URL for the cached file
Declaration
Swift
@objc open internal(set) dynamic var pathURL: URL? { get set }
-
The
_kmd
property mapped in the Kinvey backend.Declaration
Swift
@objc public dynamic var metadata: Metadata?
-
The
_acl
property mapped in the Kinvey backend.Declaration
Swift
@objc public dynamic var acl: Acl?
-
Declaration
Swift
public convenience required init?(map: Map)
-
Constructor of a file instance.
Declaration
Swift
public convenience init(_ block: (File) -> Void)
-
Undocumented
See moreDeclaration
Swift
public enum FileCodingKeys : String, CodingKey
-
Undocumented
Declaration
Swift
public required override init()
-
Undocumented
Declaration
Swift
public init(from decoder: Decoder) throws
-
Undocumented
Declaration
Swift
open func encode(to encoder: Encoder) throws
-
Undocumented
Declaration
Swift
open class func decodeArray<T>(from data: Data) throws -> [T] where T : JSONDecodable
-
Undocumented
Declaration
Swift
open class func decode<T>(from data: Data) throws -> T where T : JSONDecodable
-
Undocumented
Declaration
Swift
open class func decode<T>(from dictionary: [String : Any]) throws -> T where T : JSONDecodable
-
Undocumented
Declaration
Swift
open func refresh(from dictionary: [String : Any]) throws
-
Undocumented
Declaration
Swift
open func encode() throws -> [String : Any]
-
Declaration
Swift
open func mapping(map: Map)
-
Declaration
Swift
open override class func primaryKey() -> String?
-
Declaration
Swift
open override class func ignoredProperties() -> [String]