Record Class PWAIcons.Sources
java.lang.Object
java.lang.Record
com.iizix.pwa.PWAIcons.Sources
- Record Components:
master- The PNG bytes of the master icon (square, at least 512), null for none: then nothing is generated and only the folder's, the named and the iiziRun files are served.maskable- The bytes of the image named as the maskable icon, null for none.monochrome- The bytes of the image named as the monochrome icon, null for none.apple- The bytes of the image named as the Apple icon, null for none.assets- The module's asset files by path relative to the assets directory with '/' separators (PWA/icons/512.png,iiziRun/icons/ios/180.png), those underPWAIcons.FOLDERandPWAIcons.IIZIRUN_ICONSat least; null for none.fallback- The App's background for the maskable and Apple icons when an image has no edge colour (PWAIcons.getBackground(ModuleApp)), null for the default.
- Enclosing class:
PWAIcons
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionbyte[]apple()Returns the value of theapplerecord component.assets()Returns the value of theassetsrecord component.final booleanIndicates whether some other object is "equal to" this one.fallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.byte[]maskable()Returns the value of themaskablerecord component.byte[]master()Returns the value of themasterrecord component.byte[]Returns the value of themonochromerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Sources
public Sources(byte[] master, byte[] maskable, byte[] monochrome, byte[] apple, Map<String, byte[]> assets, Color fallback) Creates an instance of aSourcesrecord class.- Parameters:
master- the value for themasterrecord componentmaskable- the value for themaskablerecord componentmonochrome- the value for themonochromerecord componentapple- the value for theapplerecord componentassets- the value for theassetsrecord componentfallback- the value for thefallbackrecord component
Method Details
toString
hashCode
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).master
maskable
monochrome
public byte[] monochrome()Returns the value of themonochromerecord component.- Returns:
- the value of the
monochromerecord component
apple
assets
fallback