iOS Question How to handle AddImageToAlbum job is finished

ykucuk

Well-Known Member
Licensed User
Longtime User
Hello,

I need a take screnshot of my application. Before take it i must hide 2 buttons.(btnRefresh and btnSave).

after the AddImageToAlbum process i must unhide same buttons.

I can't handle AddImageToAlbum success and below code is unfortunately doesn't hide buttons for screenshot.

Is there any code which "sleep(3000)" as we have in .net or can i handle with any function AddImageToAlbum

Thank you for help

B4X:
Label1.Visible=False
    btnRefresh.Visible=False
    btnSave.Visible=False

    Dim no AsNativeObject = Me
    Dim bmp As Bitmap = no.RunMethod("TakeScreenshot", Null)
    Dim z As Phone
    z.AddImageToAlbum(bmp)

    Label1.Visible=True
    btnRefresh.Visible=True
    btnSave.Visible=True
 
Top