SimpleMDM-Swift Documentation

Structure Installed​App

public struct InstalledApp: GettableResource  

A representation of an app installation on a device.

%59 InstalledApp InstalledApp Decodable Decodable InstalledApp->Decodable Resource Resource InstalledApp->Resource GettableResource GettableResource InstalledApp->GettableResource

Conforms To

Resource

A protocol adopted by all resources types of the library.

Decodable
GettableResource

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 installed app.

identifier

public let identifier: String

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

version

public let version: String

The version of the app (corresponding to the CFBundleVersion entry in the app's Info.plist).

short​Version

public let shortVersion: Version

The version of the app (corresponding to the CFBundleShortVersionString entry in the app's Info.plist).

bundle​Size

public let bundleSize: Int

The size of the installed app on the device, in bytes.

dynamic​Size

public let dynamicSize: Int

The size of the installed app ???, in bytes.

managed

public let managed: Bool

Whether the app is managed by SimpleMDM.

discovered​At

public let discoveredAt: Date

The date at which the app was discovered by SimpleMDM on the device.

endpoint​Name

public static var endpointName: String  

The remote API endpoint identifying this resource.