Structure
App
public struct App: FetchableListableResource
An App
represents an app in your app catalog. You can use AppGroup
to install apps to your devices.
Relationships
Nested Types
App.ManagedConfig
A managed app configuration (a key-value pair) associated with an
App
.
Conforms To
Resource
A protocol adopted by all resources types of the library.
FetchableListableResource
A protocol describing resource types that we can get a list of and that can be fetched from the API independently of another resource.
Decodable
Nested Type Aliases
Initializers
init(from:)
public init(from decoder: Decoder) throws
Creates a new instance of the resource by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Parameters
Name | Type | Description |
---|---|---|
decoder | Decoder |
The decoder to read data from. |
Properties
bundleIdentifier
public let bundleIdentifier: String
The bundle identifier of the app (in reverse DNS notation).
itunesStoreId
public let itunesStoreId: Int?
The iTunes store id of the app (if the app is available on the App Store or Mac App Store).
version
public let version: String?
The version of the app (corresponding to the CFBundleVersion
entry in the app's Info.plist).
managedConfigs
public let managedConfigs: RelatedToManyNested<App, ManagedConfig>
Managed app configuration associated with the app.
endpointName
public static var endpointName: String
The remote API endpoint identifying this resource.