2
0
Fork 0
mirror of https://github.com/mas-cli/mas synced 2025-01-13 20:38:59 +00:00
mas/MasKit/AppLibrary.swift

17 lines
442 B
Swift
Raw Normal View History

//
// AppLibrary.swift
// MasKit
//
// Created by Ben Chatelain on 12/27/18.
// Copyright © 2018 mas-cli. All rights reserved.
//
/// Utility for managing installed apps.
public protocol AppLibrary {
/// Finds an app by ID from the set of installed apps
///
/// - Parameter appId: MAS ID for app.
/// - Returns: Software Product of app if found; nil otherwise.
func installedApp(appId: UInt64) -> SoftwareProduct?
}