Class CrashService
-
- All Implemented Interfaces:
public final class CrashService extends MobileService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCrashService.CrashUploadWorker
-
Field Summary
Fields Modifier and Type Field Description private Booleanconsentedprivate Applicationapplicationprivate StringapiKey
-
Constructor Summary
Constructors Constructor Description CrashService(Boolean isOnlineOData)
-
Method Summary
Modifier and Type Method Description final BooleangetConsented()final UnitsetConsented(Boolean consented)Unitinit(Application application, String apiKey)Initializes the mobile service UnitonStateChange(ApplicationState state)Notified when application state changes. final Unitupload(ServiceListener<Integer> listener)-
Methods inherited from class com.sap.cloud.mobile.foundation.mobileservices.MobileService
enableNetworkPolicy, getApiKey, getApplication, isApplicationInitialized, mayStartNewProcess, reset, setApiKey, setApplication -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getConsented
final Boolean getConsented()
-
setConsented
final Unit setConsented(Boolean consented)
-
init
Unit init(Application application, String apiKey)
Initializes the mobile service
-
onStateChange
Unit onStateChange(ApplicationState state)
Notified when application state changes. This function will be called on Main thread.
-
upload
final Unit upload(ServiceListener<Integer> listener)
-
-
-
-