All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.firebase.messaging.InstanceIdClient Maven / Gradle / Ivy

Go to download

This is the official Firebase Admin Java SDK. Build extraordinary native JVM apps in minutes with Firebase. The Firebase platform can power your app’s backend, user authentication, static hosting, and more.

There is a newer version: 9.3.0
Show newest version
package com.google.firebase.messaging;

import java.util.List;

/**
 * An interface for managing FCM topic subscriptions.
 */
interface InstanceIdClient {

  /**
   * Subscribes a list of registration tokens to a topic.
   *
   * @param registrationTokens A non-null, non-empty list of device registration tokens.
   * @param topic Name of the topic to subscribe to. May contain the {@code /topics/} prefix.
   * @return A {@link TopicManagementResponse}.
   */
  TopicManagementResponse subscribeToTopic(
      String topic, List registrationTokens) throws FirebaseMessagingException;

  /**
   * Unsubscribes a list of registration tokens from a topic.
   *
   * @param registrationTokens A non-null, non-empty list of device registration tokens.
   * @param topic Name of the topic to unsubscribe from. May contain the {@code /topics/} prefix.
   * @return A {@link TopicManagementResponse}.
   */
  TopicManagementResponse unsubscribeFromTopic(
      String topic, List registrationTokens) throws FirebaseMessagingException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy