|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkStateChecker
Defines the responsability of an entity that checks the network state. It can
be passed to the RequestProcessor
to determine if network is
available or not and to determine if requests should be processed or not.
NetworkStateChecker
are also in charge of checking required
permission to determine the network state and network usage.
Method Summary | |
---|---|
void |
checkPermissions(android.content.Context context)
Check if all permissions necessary to determine network state and use network are granted to a given context. |
boolean |
isNetworkAvailable(android.content.Context context)
Determine whether network is available or not. |
Method Detail |
---|
boolean isNetworkAvailable(android.content.Context context)
context
- the context from which network state is accessed.
void checkPermissions(android.content.Context context)
context
- the context that will be checked to see if it has all required
permissions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |