getImagePath(imageName)
Obtains the resolved path of an image.
Returns
The API key for the image path as a string.
Parameters
Name | Type | Description | Required |
imageName | string | The name of the image whose resolved path must be obtained. | ✅ |
Usage example
In this example, the API obtains the resolved path to the
launcher.png
image, which is then stored in
imagePath
.
const imagePath = getPConnect().getImagePath("launcher.png");
Previous topic getGoogleMapsAPIKey() Next topic getInheritedProps()