Package 

Class AutoStartManager


  • 
    public final class AutoStartManager
    
                        

    Manages the auto start settings of an app.

    • Method Summary

      Modifier and Type Method Description
      final Boolean getIsInAutoStart()
      final Unit addToAutoStart(AutoStartLaunchConfig autoStartLaunchConfig) Adds the app managed by this instance to the auto start of windows.
      final Unit addToAutoStart() Adds the app managed by this instance to the auto start of windows.
      final Unit removeFromAutoStart() Removes the app managed by this instance from the auto start.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AutoStartManager

        AutoStartManager(String appName)
        Parameters:
        appName - The name of the app.
    • Method Detail

      • 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.