Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BillingConnection.java « purchase « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b9a198aca40345e12f5076c77a7e5e92fbd42e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.mapswithme.maps.purchase;

import android.support.annotation.NonNull;

/**
 * Represents a billing connection abstraction.
 */
public interface BillingConnection
{
  /**
   * Opens a connection to the billing manager.
   */
  void open();

  /**
   * Closes the connection to the billing manager.
   */
  void close();

  /**
   * @return the connection state of the billing manager.
   */
  @NonNull
  State getState();

  enum State
  {
    DISCONNECTED,
    CONNECTING,
    CONNECTED,
    CLOSED
  }
}