Interface DeviceInfoManager
-
- All Known Implementing Classes:
DeviceInfoImpl
public interface DeviceInfoManagerManager for retrieving device information.- See Also:
ManagersResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanStorePicture()Check the state to have ability to save picture on device.voidcreateCalendarEvent(CalendarEventWrapper event)Allow to create new calendar event.java.lang.StringgetCarrier()Get the device carrierfloatgetDeviceDensity()Check the device screen densityintgetDeviceOrientation()Get the device orientation.java.lang.StringgetMccMnc()Get the mcc-mncintgetScreenHeight()Get the screen height.intgetScreenWidth()Get the screen width.booleanhasGps()Checks if the device can use location featuresbooleanhasTelephony()Check the state that device has telephony to do calls/smsbooleanisActivityOrientationLocked(android.content.Context context)booleanisPermissionGranted(java.lang.String permission)Check if is permission granted.booleanisScreenLocked()Get device screen lock state.booleanisScreenOn()Get device screen state.booleanisTablet()Checks if the device is a tabletvoidplayVideo(java.lang.String url, android.content.Context context)Allow to play video inside internal playervoidstorePicture(java.lang.String url)Allow to store picture on device.
-
-
-
Method Detail
-
getMccMnc
java.lang.String getMccMnc()
Get the mcc-mnc- Returns:
- the mcc-mnc
-
getCarrier
java.lang.String getCarrier()
Get the device carrier- Returns:
- the carrier
-
isPermissionGranted
boolean isPermissionGranted(java.lang.String permission)
Check if is permission granted.- Parameters:
permission- the permission name- Returns:
- true, if is permission granted
-
getDeviceOrientation
int getDeviceOrientation()
Get the device orientation. Return values can be compared to android.content.res.Configuration orientation values- Returns:
- the device orientation
-
getScreenWidth
int getScreenWidth()
Get the screen width.- Returns:
- the screen width
-
getScreenHeight
int getScreenHeight()
Get the screen height.- Returns:
- the screen height
-
isScreenOn
boolean isScreenOn()
Get device screen state.- Returns:
- true if screen is on
-
isScreenLocked
boolean isScreenLocked()
Get device screen lock state.- Returns:
- true if screen is locked
-
isActivityOrientationLocked
boolean isActivityOrientationLocked(android.content.Context context)
- Parameters:
context- activity context.- Returns:
- true if activity is locked in portrait || landscape (including reverse portrait and reverse landscape)
-
createCalendarEvent
void createCalendarEvent(CalendarEventWrapper event)
Allow to create new calendar event.- Parameters:
event- is calendar event filled object
-
storePicture
void storePicture(java.lang.String url) throws java.lang.ExceptionAllow to store picture on device.- Parameters:
url- network URL to the picture- Throws:
java.lang.Exception- if there is
-
playVideo
void playVideo(java.lang.String url, android.content.Context context)Allow to play video inside internal player- Parameters:
url- network URL to the videocontext-- Throws:
java.io.IOException- if there is
-
canStorePicture
boolean canStorePicture()
Check the state to have ability to save picture on device.- Returns:
- true if can process with picture saving
-
hasTelephony
boolean hasTelephony()
Check the state that device has telephony to do calls/sms- Returns:
- true if has telephony
-
getDeviceDensity
float getDeviceDensity()
Check the device screen density- Returns:
- float device density
-
hasGps
boolean hasGps()
Checks if the device can use location features- Returns:
- true if location feature is available
-
isTablet
boolean isTablet()
Checks if the device is a tablet- Returns:
- true if it is a tablet
-
-