public class

UrbanAirshipResolver

extends Object
java.lang.Object
   ↳ com.urbanairship.UrbanAirshipResolver

Class Overview

An ContentResolver wrapper used to access data from the UrbanAirshipProvider.

Summary

Public Constructors
UrbanAirshipResolver(Context context)
Public Methods
void registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer)
Register a ContentObserver to listen for updates to the supplied URI.
void unregisterContentObserver(ContentObserver observer)
Unregister the supplied ContentObserver.
Protected Methods
int bulkInsert(Uri uri, ContentValues[] values)
int delete(Uri uri, String whereClause, String[] whereArgs)
Uri insert(Uri uri, ContentValues values)
Cursor query(Uri uri, String[] projection, String whereClause, String[] whereArgs, String sortOrder)
int update(Uri uri, ContentValues values, String whereClause, String[] whereArgs)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UrbanAirshipResolver (Context context)

Public Methods

public void registerContentObserver (Uri uri, boolean notifyForDescendents, ContentObserver observer)

Register a ContentObserver to listen for updates to the supplied URI.

Parameters
uri The URI you want to listen to updates for.
notifyForDescendents If true changes to URIs beginning with uri will also cause notifications to be sent. If false only changes to the exact URI specified by uri will cause notifications to be sent. If true, than any URI values at or below the specified URI will also trigger a match.
observer The ContentObserver you want to alert when the supplied URI is updated.

public void unregisterContentObserver (ContentObserver observer)

Unregister the supplied ContentObserver.

Parameters
observer The ContentObserver you wish to unregister

Protected Methods

protected int bulkInsert (Uri uri, ContentValues[] values)

protected int delete (Uri uri, String whereClause, String[] whereArgs)

protected Uri insert (Uri uri, ContentValues values)

protected Cursor query (Uri uri, String[] projection, String whereClause, String[] whereArgs, String sortOrder)

protected int update (Uri uri, ContentValues values, String whereClause, String[] whereArgs)