-
public interface DeviceInfoManagerManager for retrieving device information.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetMccMnc()Get the mcc-mnc abstract StringgetCarrier()Get the device carrier abstract booleanisPermissionGranted(String permission)Check if is permission granted. abstract intgetDeviceOrientation()Get the device orientation. abstract intgetScreenWidth()Get the screen width. abstract intgetScreenHeight()Get the screen height. abstract booleanisScreenOn()Get device screen state. abstract booleanisScreenLocked()Get device screen lock state. abstract booleanisActivityOrientationLocked(Context context)abstract voidcreateCalendarEvent(CalendarEventWrapper event)Allow to create new calendar event. abstract voidstorePicture(String url)Allow to store picture on device. abstract voidplayVideo(String url, Context context)Allow to play video inside internal player abstract booleancanStorePicture()Check the state to have ability to save picture on device. abstract booleanhasTelephony()Check the state that device has telephony to do calls/sms abstract floatgetDeviceDensity()Check the device screen density abstract booleanhasGps()Checks if the device can use location features abstract booleanisTablet()Checks if the device is a tablet -
-
Method Detail
-
getCarrier
abstract String getCarrier()
Get the device carrier
-
isPermissionGranted
abstract boolean isPermissionGranted(String permission)
Check if is permission granted.
- Parameters:
permission- the permission name
-
getDeviceOrientation
abstract int getDeviceOrientation()
Get the device orientation. Return values can be compared toandroid.content.res.Configuration orientation values
-
getScreenWidth
abstract int getScreenWidth()
Get the screen width.
-
getScreenHeight
abstract int getScreenHeight()
Get the screen height.
-
isScreenOn
abstract boolean isScreenOn()
Get device screen state.
-
isScreenLocked
abstract boolean isScreenLocked()
Get device screen lock state.
-
isActivityOrientationLocked
abstract boolean isActivityOrientationLocked(Context context)
- Parameters:
context- activity context.
-
createCalendarEvent
abstract void createCalendarEvent(CalendarEventWrapper event)
Allow to create new calendar event.
- Parameters:
event- is calendar event filled object
-
storePicture
abstract void storePicture(String url)
Allow to store picture on device.
- Parameters:
url- network URL to the picture
-
playVideo
abstract void playVideo(String url, Context context)
Allow to play video inside internal player
- Parameters:
url- network URL to the video
-
canStorePicture
abstract boolean canStorePicture()
Check the state to have ability to save picture on device.
-
hasTelephony
abstract boolean hasTelephony()
Check the state that device has telephony to do calls/sms
-
getDeviceDensity
abstract float getDeviceDensity()
Check the device screen density
-
hasGps
abstract boolean hasGps()
Checks if the device can use location features
-
isTablet
abstract boolean isTablet()
Checks if the device is a tablet
-
-
-
-