Sony Addon SDK public class

RegisterExtensionTask

This project is no longer being supported and will not get any further updates.
extends
  1. java.lang.Object
  2. <any>
  3. com.sonyericsson.extras.liveware.extension.util.registration.RegisterExtensionTask

Class Overview

Perform extension registration or update in background

Summary

Public Constructors
RegisterExtensionTask(Context context, RegistrationInformation registrationInformation, IRegisterCallback registerInterface, boolean onlySources)

Create register extension task

Public Methods
void setRegisterInterface(IRegisterCallback registerInterface)

Set register interface.

Protected Methods
java.lang.Boolean doInBackground(java.lang.Void... params)
void onPostExecute(java.lang.Boolean registrationSuccess)
void onCancelled()

Public Constructors

public RegisterExtensionTask(Context context, RegistrationInformation registrationInformation, IRegisterCallback registerInterface, boolean onlySources)

Create register extension task

Parameters
context The context
registrationInformation Information needed during registration
registerInterface Registration callback interface
onlySources True if only sources shall be refreshed. False if full registration.

Public Methods

public void setRegisterInterface(IRegisterCallback registerInterface)

Set register interface. Used to set interface to null to handle the case when the service is destroyed before onPostExecute is executed.

Parameters
registerInterface The register interface

Protected Methods

protected java.lang.Boolean doInBackground(java.lang.Void... params)

Parameters
params

protected void onPostExecute(java.lang.Boolean registrationSuccess)

Parameters
registrationSuccess

protected void onCancelled()