mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
fix(core): provided image source can be unintentionally disposed (#10654)
This commit is contained in:

committed by
GitHub

parent
050fa3fea6
commit
a883a79e3b
5
packages/core/image-source/index.d.ts
vendored
5
packages/core/image-source/index.d.ts
vendored
@ -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.
|
||||
|
Reference in New Issue
Block a user