-
public final class CustomEventMetadataMetadata for custom events containing device and SDK information. This metadata is included with custom events sent to the OneSignal backend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCustomEventMetadata.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringdeviceTypeprivate final Stringsdkprivate final StringappVersionprivate final Stringtypeprivate final StringdeviceModelprivate final StringdeviceOS
-
Method Summary
Modifier and Type Method Description final StringgetDeviceType()final StringgetSdk()final StringgetAppVersion()final StringgetType()final StringgetDeviceModel()final StringgetDeviceOS()final JSONObjecttoJSONObject()Converts the metadata to a JSONObject for serialization. StringtoString()-
-
Method Detail
-
getDeviceType
final String getDeviceType()
-
getAppVersion
final String getAppVersion()
-
getDeviceModel
final String getDeviceModel()
-
getDeviceOS
final String getDeviceOS()
-
toJSONObject
final JSONObject toJSONObject()
Converts the metadata to a JSONObject for serialization.
-
-
-
-