Class PermissionsTask
- java.lang.Object
-
- android.os.AsyncTask<Void,Void,T>
-
- com.aerisweather.aeris.communication.CommunicationTask<AerisPermissionsResponse>
-
- com.aerisweather.aeris.communication.PermissionsTask
-
public class PermissionsTask extends CommunicationTask<AerisPermissionsResponse>
Task that will use the client information and query the Aeris API to see what permission the client has for accessing the API. The AerisEngine will automatically query this whenAerisEngine.initWithKeys(String, String, Context)
is called
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PermissionsTask.PermissionsCallback
Callback interface for handling the response for the permissions.
-
Field Summary
-
Fields inherited from class com.aerisweather.aeris.communication.CommunicationTask
context, progressListener, request
-
-
Constructor Summary
Constructors Constructor Description PermissionsTask(android.content.Context context, PermissionsTask.PermissionsCallback callback)
Initialize with a context and a callback interface to handle the response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AerisPermissionsResponse
doInBackground(Void... params)
protected void
onPostExecute(AerisPermissionsResponse result)
-
Methods inherited from class com.aerisweather.aeris.communication.CommunicationTask
executeSyncTask, isOnline, onCancelled, onPreExecute, unknownBatchError, unknownError, withProgress
-
-
-
-
Constructor Detail
-
PermissionsTask
public PermissionsTask(android.content.Context context, PermissionsTask.PermissionsCallback callback)
Initialize with a context and a callback interface to handle the response.- Parameters:
context
- context to usecallback
- callback interface to pass response back to
-
-
Method Detail
-
doInBackground
protected AerisPermissionsResponse doInBackground(Void... params)
- Overrides:
doInBackground
in classCommunicationTask<AerisPermissionsResponse>
-
onPostExecute
protected void onPostExecute(AerisPermissionsResponse result)
- Overrides:
onPostExecute
in classCommunicationTask<AerisPermissionsResponse>
-
-