MacosAppInfo class
Metadata for a discovered macOS app bundle.
appPath identifies an app copy; multiple copies can share a bundle ID.
Constructors
-
MacosAppInfo({String? bundleIdentifier, String? appName, String? versionName, String? buildNumber, String? appPath, String? executablePath, bool? isSystem, bool? isAgent, bool? isBackgroundOnly, String? category, String? minimumSystemVersion, List<
String> ? supportedArchitectures, int? bundleSizeBytes, String? teamIdentifier, Uint8List? iconBytes}) -
Creates app metadata. Unknown or unavailable fields can be null.
const
-
MacosAppInfo.fromMap(Map<
String, Object?> map) -
Creates app metadata from a native method-channel map.
factory
Properties
- appName → String?
-
Localized display name, with a bundle name or filename fallback.
final
- appPath → String?
-
Absolute app bundle path with symlinks resolved.
final
- buildNumber → String?
-
Build identifier from
CFBundleVersion, preserving dotted values as text.final - bundleIdentifier → String?
-
CFBundleIdentifier; not unique across app copies and not always present.final - bundleSizeBytes → int?
-
Total logical byte length of regular file entries in the bundle, when requested.
final
- category → String?
-
App category identifier from
LSApplicationCategoryType.final - executablePath → String?
-
Declared executable path; presence alone does not guarantee launch success.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconBytes → Uint8List?
-
64×64 PNG icon bytes, when requested and available.
final
- isAgent → bool?
-
Whether
LSUIElementdeclares an agent app that does not appear in the Dock.final - isBackgroundOnly → bool?
-
Whether
LSBackgroundOnlydeclares an app that runs only in the background.final - isSystem → bool?
-
Whether the app is in a system location, based on its path.
final
- minimumSystemVersion → String?
-
Minimum macOS version declared by
LSMinimumSystemVersion.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedArchitectures
→ List<
String> ? -
CPU architecture families supported by the main executable, when requested.
final
- teamIdentifier → String?
-
Team ID reported by the embedded code signature, when requested and available.
final
- versionName → String?
-
User-facing version from
CFBundleShortVersionString.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited