-
public final class AutoStartManagerManages the auto start settings of an app.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisInAutoStart
-
Constructor Summary
Constructors Constructor Description AutoStartManager(String appName)
-
Method Summary
Modifier and Type Method Description final BooleangetIsInAutoStart()final UnitaddToAutoStart(AutoStartLaunchConfig autoStartLaunchConfig)Adds the app managed by this instance to the auto start of windows. final UnitaddToAutoStart()Adds the app managed by this instance to the auto start of windows. final UnitremoveFromAutoStart()Removes the app managed by this instance from the auto start. -
-
Constructor Detail
-
AutoStartManager
AutoStartManager(String appName)
- Parameters:
appName- The name of the app.
-
-
Method Detail
-
getIsInAutoStart
final Boolean getIsInAutoStart()
-
addToAutoStart
@JvmOverloads() final Unit addToAutoStart(AutoStartLaunchConfig autoStartLaunchConfig)
Adds the app managed by this instance to the auto start of windows. If an app with the same name already exists, its entry will be overwritten. Consequently, this means that the autoStartLaunchConfig can be updated simply by calling this method again.
- Parameters:
autoStartLaunchConfig- The configuration to be used to launch the app
-
addToAutoStart
@JvmOverloads() final Unit addToAutoStart()
Adds the app managed by this instance to the auto start of windows. If an app with the same name already exists, its entry will be overwritten. Consequently, this means that the autoStartLaunchConfig can be updated simply by calling this method again.
-
removeFromAutoStart
final Unit removeFromAutoStart()
Removes the app managed by this instance from the auto start. No-op if isInAutoStart is
false.
-
-
-
-