I'm loading an image from url source but no event data

images

#1

My native script have issue that i’m loading an image from url and when the image is loaded it doesn’t fires up any event on loaded.

public onTap() {
        this.image.src = 'http://royal.mazahub.com/humza/expense_material/QBTpzYu36POkg5GNPtA7k3FUeQfEoiMz5eXiIN5Y.jpeg'
        this.image.onLoaded = function(){
            alert("i ve done this");
        }
    }

#2

That’s not the purpose of onLoaded method and it’s not called when image is loaded.

You have to listen for isLoadingChange event to know when image is loaded.