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 recordDefault implementation ofCustomLauncherIcontype. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomLauncherIconCreates object of typeCustomLauncherIconfrom the path to icon file.static Optional<CustomLauncherIcon> fromLauncherIcon(LauncherIcon icon) Returns the given icon asCustomLauncherIcontype or an emptyOptionalinstance if the given icon object is not an instance ofCustomLauncherIcontype.path()Returns path to icon file.
-
Method Details
-
path
-
fromLauncherIcon
Returns the given icon asCustomLauncherIcontype or an emptyOptionalinstance if the given icon object is not an instance ofCustomLauncherIcontype.- Parameters:
icon- application launcher icon object ornull- Returns:
- the given icon as
CustomLauncherIcontype or an emptyOptionalinstance
-
create
Creates object of typeCustomLauncherIconfrom the path to icon file.- Parameters:
path- path to icon file- Returns:
CustomLauncherIconinstance
-