C# Класс Billing.BillingReceiver

Наследование: BroadcastReceiver
Показать файл Открыть проект

Открытые методы

Метод Описание
OnReceive ( Android.Content.Context context, Android.Content.Intent intent ) : void

This is the entry point for all asynchronous messages sent from Android Market to the application. This method forwards the messages on to the BillingService, which handles the communication back to Android Market. The BillingService also reports state changes back to the application through the ResponseHandler.

Приватные методы

Метод Описание
CheckResponseCode ( Android.Content.Context context, long requestId, int responseCodeIndex ) : void

This is called when Android Market sends a server response code. The BillingService can then report the status of the response if desired.

Notify ( Android.Content.Context context, string notifyId ) : void

This is called when Android Market sends a "notify" message indicating that transaction information is available. The request includes a nonce (random number used once) that we generate and Android Market signs and sends back to us with the purchase state and other transaction details. This BroadcastReceiver cannot bind to the MarketBillingService directly so it starts the BillingService, which does the actual work of sending the message.

PurchaseStateChanged ( Android.Content.Context context, string signedData, string signature ) : void

This is called when Android Market sends information about a purchase state change. The signedData parameter is a plaintext JSON string that is signed by the server with the developer's private key. The signature for the signed data is passed in the signature parameter.

Описание методов

OnReceive() публичный Метод

This is the entry point for all asynchronous messages sent from Android Market to the application. This method forwards the messages on to the BillingService, which handles the communication back to Android Market. The BillingService also reports state changes back to the application through the ResponseHandler.
public OnReceive ( Android.Content.Context context, Android.Content.Intent intent ) : void
context Android.Content.Context
intent Android.Content.Intent
Результат void