# Class PushClient

java.lang.Object
com.codename1.push.PushClient

public final class PushClient extends Object
Explicit v3 client binding. The application main class does not implement `PushCallback`.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `PushClient.Builder`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static PushClient.Builder`
  `builder(String appId)`
  `static void`
  `dispatch(String envelopeJson)`
  Native/custom transport entry point for an encoded v3 envelope.
  `static PushCallback`
  `getActiveCallback()`
  Used by generated native bootstraps to find the explicit callback binding.
  `String`
  `getAppId()`
  `PushSubscription`
  `getSubscription()`
  `static boolean`
  `hasActiveClient()`
  Returns true when a v3 binding can receive a native push immediately.
  `void`
  `register()`
  `void`
  `unregister()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### builder

    public static PushClient.Builder builder(String appId)

  - ### register

    public void register()

  - ### unregister

    public void unregister()

  - ### getAppId

    public String getAppId()

  - ### getSubscription

    public PushSubscription getSubscription()

  - ### getActiveCallback

    public static PushCallback getActiveCallback()
    Used by generated native bootstraps to find the explicit callback binding.

  - ### hasActiveClient

    public static boolean hasActiveClient()
    Returns true when a v3 binding can receive a native push immediately.

  - ### dispatch

    public static void dispatch(String envelopeJson)
    Native/custom transport entry point for an encoded v3 envelope.