MacOSAppLauncher class

macOS implementation of AppLauncher communicating with native Swift code via Flutter MethodChannel.

Under the hood, native macOS code connects to LaunchAtLogin-Modern (SMAppService.mainApp).

Inheritance

Constructors

MacOSAppLauncher({required String appName, required String appPath, List<String> args = const []})
Creates an MacOSAppLauncher instance.
const

Properties

appName → String
The name of the application.
finalinherited
appPath → String
The file path to the application executable or bundle.
finalinherited
args → List<String>
Optional command-line arguments passed when the application starts at login.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isEnabled() → Future<bool>
Checks whether the application is currently configured to open at login.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setEnabled(bool enabled) → Future<void>
Enables or disables launching the application at login.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited