SimpleMDM-Swift Documentation

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.

%43 App App Decodable Decodable App->Decodable Resource Resource App->Resource FetchableListableResource FetchableListableResource App->FetchableListableResource

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

ID

public typealias ID = Int

The type of the unique identifier of this resource.

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

decoder Decoder

The decoder to read data from.

Properties

id

public let id: ID

The unique identifier of this resource.

name

public let name: String

The name of the app.

app​Type

public let appType: String

The app type (e.g. "app store", "enterprise", etc.)

bundle​Identifier

public let bundleIdentifier: String

The bundle identifier of the app (in reverse DNS notation).

itunes​Store​Id

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).

managed​Configs

public let managedConfigs: RelatedToManyNested<App, ManagedConfig>

Managed app configuration associated with the app.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.