GIPHY Integration

Enable users to select and share GIFs using the Giphy SDK.

The GIPHY library allows users to search a library of animated GIFs and share them in the conversation, adding a dynamic and visual element to the user experience.

1314

Leaving a Gif on a comment

Giphy integration requires platform-specific implementations for both Android and iOS

iOS Implementation

To enable this feature on iOS, link your app with the Giphy iOS SDK . No additional implementation is required.

Android Implementation

  1. Add Giphy Dependency
dependencies {
    implementation 'com.giphy.sdk:ui:2.4.0'
}
  1. Register the Provider
class MainApplication : Application() {

    override fun onCreate() {
        super.onCreate()

        OpenWeb.manager.ui.customizations.setGiphyProvider(
            object : SpotGiphyProvider {

                override fun configure(
                    activityContext: Context,
                    sdkKey: String
                ) {
                    // Giphy configuration logic
                }

                override fun showGiphyDialogFragment(
                    giphySetting: GiphySetting,
                    fragmentManager: FragmentManager,
                    fragmentTag: String,
                    selectionListener: GifSelectionListener
                ) {
                    // Show Giphy picker and call
                    // selectionListener.onGifSelected() when user selects a GIF
                }
            }
        )
    }
}