DownloadGroup
open class DownloadGroup : ObjectBase
Represents a named group for offline download. Download groups are used for selecting a subset of data to be downloaded.
See also
groups parameter of OfflineDataService.download.
-
Construct a new download group with the specified name.
Declaration
Swift
public init(name: String)Parameters
nameDownload group name.
-
Add the names of multiple entity sets to
entities. IfEntitySetobjects are not available at the time of configuring the download group, e.g. before callingOfflineDataService.openwhen using the dynamic API, you can usedownloadGroup.entities.add(entitySetName)to add the name of an entity set.Declaration
Swift
open func add(_ entities: EntitySet...) throwsParameters
rest_entitiesEntity sets with names to be added.
-
Add the name of a download group to
groups.Declaration
Swift
open func addGroup(name: String) throwsParameters
nameName of group to be added.
-
Add the names of multiple download groups to
groups.Declaration
Swift
open func addGroups(_ groups: String...) throwsParameters
rest_groupsNames of groups to be added.
-
Add the names of multiple download queries to
queries.Declaration
Swift
open func addQueries(_ queries: String...) throwsParameters
rest_queriesNames of queries to be added.
-
Add the name of a download query to
queries.Declaration
Swift
open func addQuery(name: String) throwsParameters
nameName of query to be added.
-
Names of entity sets that are included in this group.
See also
add.Declaration
Swift
@inline(__always) public final var entities: StringSet { get } -
Names of download groups sets that are included in this group.
See also
addGroup,addGroups.Declaration
Swift
@inline(__always) public final var groups: StringSet { get } -
Declaration
Swift
open func includesGroup(name: String) throws -> BoolParameters
nameGroup name to be checked.
Return Value
trueifgroupsincludes the specified group. -
Declaration
Swift
open func includesQuery(name: String) throws -> BoolParameters
nameQuery name to be checked.
Return Value
trueifqueriesincludes the specified query. -
Name of this download group.
Declaration
Swift
open var name: String { get } -
Names of download queries sets that are included in this group.
See also
addQuery,addQueries.Declaration
Swift
@inline(__always) public final var queries: StringSet { get } -
Declaration
Swift
override open func toString() -> StringReturn Value
A string representation of this object.