sdk-maps / com.tomtom.online.sdk.map / Icon / Factory / fromAssets

fromAssets

@NonNull open static fun fromAssets(context: Context!, fileName: String!): Icon

Load icon from assets. Apart from standard formats (e.g. PNG), allows also to load GIFs. File name is used as a name. Icon scale is set to 1.0.

@NonNull open static fun fromAssets(context: Context!, fileName: String!, scale: Double): Icon

Load icon from assets. Apart from standard formats (e.g. PNG), allows also to load GIFs. File name is used as a name.