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

Waldemar Lima

Well-Known Member
Licensed User
Longtime 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

Expert
Licensed User
Longtime User
Did you try this? :

 
Upvote 0

Waldemar Lima

Well-Known Member
Licensed User
Longtime 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
Longtime 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

Shelby

Well-Known Member
Licensed User
Longtime User
Since this is the B4A forum, perhaps you should start a new thread on the B4i - iOS forum for faster results.
 
Upvote 0
Top