Interface CustomLauncherIcon
- All Superinterfaces:
LauncherIcon
- All Known Implementing Classes:
CustomLauncherIcon.Stub
Custom application launcher icon.
Use create(Path)
method to create an instance of this type.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Default implementation ofCustomLauncherIcon
type. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomLauncherIcon
Creates object of typeCustomLauncherIcon
from the path to icon file.static Optional
<CustomLauncherIcon> fromLauncherIcon
(LauncherIcon icon) Returns the given icon asCustomLauncherIcon
type or an emptyOptional
instance if the given icon object is not an instance ofCustomLauncherIcon
type.path()
Returns path to icon file.
-
Method Details
-
path
-
fromLauncherIcon
Returns the given icon asCustomLauncherIcon
type or an emptyOptional
instance if the given icon object is not an instance ofCustomLauncherIcon
type.- Parameters:
icon
- application launcher icon object ornull
- Returns:
- the given icon as
CustomLauncherIcon
type or an emptyOptional
instance
-
create
Creates object of typeCustomLauncherIcon
from the path to icon file.- Parameters:
path
- path to icon file- Returns:
CustomLauncherIcon
instance
-