Class OkCollect.Builder

java.lang.Object
io.okhi.android_okcollect.OkCollect.Builder
Enclosing class:
OkCollect

public static class OkCollect.Builder extends Object
OkCollect builder class.
  • Constructor Details

    • Builder

      public Builder(@NonNull android.app.Activity activity)
      OkCollect builder.
      Parameters:
      activity - the context to run okhi webview.
  • Method Details

    • withTheme

      public OkCollect.Builder withTheme(@NonNull OkHiTheme okHiTheme)
      Configure the look and feel of the webview. Makes the app bar visible. Default is false, app bar not visible.
      Parameters:
      okHiTheme - object to configure the look and feel of the webview.
    • withConfig

      public OkCollect.Builder withConfig(@NonNull OkHiConfig okHiConfig)
      launch okhi address creation. Enables streetview functionality in address creation. Default is false, streetview functionality not enabled.
      Parameters:
      okHiConfig - object to enable streetview.
    • build

      public OkCollect build()
      Create an instance of okcollect