Class MacProcesses.Info
java.lang.Object
com.install4j.api.ProcessInfo
com.install4j.api.macos.MacProcesses.Info
- All Implemented Interfaces:
Serializable
- Enclosing class:
MacProcesses
Class that holds information about running macOS processes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe bundle identifier of the application.The displayed name of the application.Get the title of one of the visible top-level windows of this process.booleanReturns if the process is only running in the background and does not display any windows.toString()Methods inherited from class ProcessInfo
equals, getModuleName, getProcessId, hashCodeModifier and TypeMethodDescriptionbooleanRetrieves the full executable path of the process.intRetrieves the process id.inthashCode()
-
Constructor Details
-
Info
-
-
Method Details
-
getWindowTitle
Description copied from class:ProcessInfoGet the title of one of the visible top-level windows of this process.- Specified by:
getWindowTitlein classProcessInfo- Returns:
- the title
-
getDisplayedName
The displayed name of the application. For non-application bundle processes, the simple name of the executable is returned.- Returns:
- the name
-
getBundleIdentifier
The bundle identifier of the application.- Returns:
- the bundle identifier, or
nullif the process is not associated with an application bundle
-
isBackgroundOnly
public boolean isBackgroundOnly()Returns if the process is only running in the background and does not display any windows. All non-application bundle processes returntruehere, even if they display a GUI by some other means.- Returns:
- if background only
-
toString
- Overrides:
toStringin classProcessInfo
-