Android Question [ B4XGifView ] have a way to disable loop ?

Waldemar Lima

Active Member
Licensed User
hello everyone !
i am using b4xGifView, and i would like to get way to disable loop of GIF ( run gif only 1 time )
 

asales

Well-Known Member
Licensed User
Did you try this? :

 
Upvote 0

Waldemar Lima

Active Member
Licensed User
thanks @asales

i found another way to stop GifView :

B4X:
Sub GifView_Stop
    
    If B4XGifView1.GifDrawable.IsInitialized=True Then
         B4XGifView1.GifDrawable.RunMethod("stop",Null)
    End If
    
End Sub

Sub GifView_CurrentDuration As Int
    
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("getCurrentPosition",Null)
    Else
        Return Null   
    End If
    
End Sub

Sub GifView_GetDuration As Int
    
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("getDuration",Null)
    Else
        Return Null
    End If
    
End Sub

Sub GifView_IsRunnig As Boolean
    
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("isRunning",Null)
    Else
        Return Null
    End If
    
End Sub
 
Upvote 0

Carlos marin

Active Member
Licensed User
thanks @asales

i found another way to stop GifView :

B4X:
Sub GifView_Stop
   
    If B4XGifView1.GifDrawable.IsInitialized=True Then
         B4XGifView1.GifDrawable.RunMethod("stop",Null)
    End If
   
End Sub

Sub GifView_CurrentDuration As Int
   
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("getCurrentPosition",Null)
    Else
        Return Null  
    End If
   
End Sub

Sub GifView_GetDuration As Int
   
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("getDuration",Null)
    Else
        Return Null
    End If
   
End Sub

Sub GifView_IsRunnig As Boolean
   
    If B4XGifView1.GifDrawable.IsInitialized=True Then
        Return B4XGifView1.GifDrawable.RunMethod("isRunning",Null)
    Else
        Return Null
    End If
   
End Sub

hi guys, would there be some way to do this on iOS, I can't find the B4XGifView1.GifDrawable property, thank you very much.
 
Upvote 0
Top