-
public class OneSignalWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private static StringsdkTypeprivate static StringsdkVersionprivate static volatile IHostPermissionPrompthostPermissionPromptpublic final static OneSignalWrapperINSTANCE
-
Method Summary
Modifier and Type Method Description final static StringgetSdkType()The type of the wrapper SDK. final static UnitsetSdkType(String sdkType)The type of the wrapper SDK. final static StringgetSdkVersion()The version of the wrapper SDK. final static UnitsetSdkVersion(String sdkVersion)The version of the wrapper SDK. final static IHostPermissionPromptgetHostPermissionPrompt()Set on activity attach and cleared on detach by wrappers whose host activity cannot host an activity result launcher. final static UnitsetHostPermissionPrompt(IHostPermissionPrompt hostPermissionPrompt)Set on activity attach and cleared on detach by wrappers whose host activity cannot host an activity result launcher. -
-
Method Detail
-
getSdkType
final static String getSdkType()
The type of the wrapper SDK.
-
setSdkType
final static Unit setSdkType(String sdkType)
The type of the wrapper SDK.
-
getSdkVersion
final static String getSdkVersion()
The version of the wrapper SDK.
-
setSdkVersion
final static Unit setSdkVersion(String sdkVersion)
The version of the wrapper SDK.
-
getHostPermissionPrompt
final static IHostPermissionPrompt getHostPermissionPrompt()
Set on activity attach and cleared on detach by wrappers whose host activity cannot host an activity result launcher. Consulted only when
PermissionsActivityis missing.
-
setHostPermissionPrompt
final static Unit setHostPermissionPrompt(IHostPermissionPrompt hostPermissionPrompt)
Set on activity attach and cleared on detach by wrappers whose host activity cannot host an activity result launcher. Consulted only when
PermissionsActivityis missing.
-
-
-
-