fix(core): provided image source can be unintentionally disposed (#10654)

This commit is contained in:
Dimitris-Rafail Katsampas
2025-01-13 04:12:06 +02:00
committed by GitHub
parent 050fa3fea6
commit a883a79e3b
4 changed files with 32 additions and 15 deletions

View File

@ -201,6 +201,11 @@ export class ImageSource {
*/
loadFromFontIconCode(source: string, font: Font, color: Color): boolean;
/**
* Gets the native source object (typically a Bitmap or a UIImage).
*/
getNativeSource(): any;
/**
* Sets the provided native source object (typically a Bitmap or a UIImage).
* This will update either the android or ios properties, depending on the target os.