Composable Function

vectorResource

Load a RemoteImageVector from an Android vector resource.

vectorResource

Source set: Android
@Composable
public fun RemoteImageVector.Companion.vectorResource(@DrawableRes id: Int): RemoteImageVector

Load a RemoteImageVector from an Android vector resource.

Parameters

id the drawable resource identifier of the vector drawable

Return

the RemoteImageVector associated with the resource

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: