-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.sdk.deviceData.managers.DeviceInfoManager
public class DeviceInfoImpl extends BaseManager implements DeviceInfoManager
-
-
Constructor Summary
Constructors Constructor Description DeviceInfoImpl(Context context)
-
Method Summary
Modifier and Type Method Description booleanhasTelephony()Check the state that device has telephony to do calls/sms StringgetMccMnc()Get the mcc-mnc StringgetCarrier()Get the device carrier booleanisPermissionGranted(String permission)Check if is permission granted. intgetDeviceOrientation()intgetScreenWidth()Get the screen width. intgetScreenHeight()Get the screen height. booleanisScreenOn()Get device screen state. booleanisScreenLocked()Get device screen lock state. booleanisActivityOrientationLocked(Context context)voidcreateCalendarEvent(CalendarEventWrapper event)Allow to create new calendar event. voidstorePicture(String url)Allow to store picture on device. voidplayVideo(String url, Context context)Allow to play video inside internal player booleancanStorePicture()Check the state to have ability to save picture on device. floatgetDeviceDensity()Check the device screen density booleanhasGps()Checks if the device can use location features booleanisTablet()Checks if the device is a tablet -
-
Constructor Detail
-
DeviceInfoImpl
DeviceInfoImpl(Context context)
-
-
Method Detail
-
hasTelephony
boolean hasTelephony()
Check the state that device has telephony to do calls/sms
-
getCarrier
String getCarrier()
Get the device carrier
-
isPermissionGranted
boolean isPermissionGranted(String permission)
Check if is permission granted.
- Parameters:
permission- the permission name
-
getDeviceOrientation
int getDeviceOrientation()
-
getScreenWidth
int getScreenWidth()
Get the screen width.
-
getScreenHeight
int getScreenHeight()
Get the screen height.
-
isScreenOn
boolean isScreenOn()
Get device screen state.
-
isScreenLocked
boolean isScreenLocked()
Get device screen lock state.
-
isActivityOrientationLocked
boolean isActivityOrientationLocked(Context context)
- Parameters:
context- activity context.
-
createCalendarEvent
void createCalendarEvent(CalendarEventWrapper event)
Allow to create new calendar event.
- Parameters:
event- is calendar event filled object
-
storePicture
void storePicture(String url)
Allow to store picture on device.
- Parameters:
url- network URL to the picture
-
playVideo
void playVideo(String url, Context context)
Allow to play video inside internal player
- Parameters:
url- network URL to the video
-
canStorePicture
boolean canStorePicture()
Check the state to have ability to save picture on device.
-
getDeviceDensity
float getDeviceDensity()
Check the device screen density
-
hasGps
boolean hasGps()
Checks if the device can use location features
-
isTablet
boolean isTablet()
Checks if the device is a tablet
-
-
-
-