Structure
InstalledApp
public struct InstalledApp: GettableResource
A representation of an app installation on a device.
Relationships
Conforms To
ResourceA protocol adopted by all resources types of the library.
DecodableGettableResource
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
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).
shortVersion
public let shortVersion: Version
The version of the app (corresponding to the CFBundleShortVersionString entry in the app's Info.plist).
discoveredAt
public let discoveredAt: Date
The date at which the app was discovered by SimpleMDM on the device.
endpointName
public static var endpointName: String
The remote API endpoint identifying this resource.