ImageParameter(source: string, width: number)
Initialize object
ImageParameter(source: string, width: number): ImageParameter
Parameter |
||
---|---|---|
source |
Image source |
|
width |
Width (dots) |
How to specify the image source
Base64 encoded contents
URI (http/https)
Resource file name
How to add the resource file
Platform
iOS
Add the resource file to the iOS project.
Android
Add the resource file directly under
android/app/src/main/res/drawable
in the Android project. (Use only lower case letters and underscores in the file name. Example:my_file.png
)Windows
Add the resource file directly under
Assets
in the Windows project.
Note
To specify the image source via non-secure communication, please configure the following settings in your application. * iOS: https://developer.apple.com/documentation/bundleresources/information_property_list/nsapptransportsecurity * Android: https://developer.android.com/training/articles/security-config#CleartextTrafficPermitted