public class PropertyConfigurator
extends com.microsoft.appcenter.channel.AbstractChannelListener
| Modifier and Type | Method and Description |
|---|---|
void |
collectDeviceId()
Enable collection of the Android device identifier for this target.
|
void |
onPreparingLog(com.microsoft.appcenter.ingestion.models.Log log,
java.lang.String groupName)
Override or inherit common schema properties while preparing log.
|
void |
removeEventProperty(java.lang.String key)
Removes the given key from the common event properties.
|
void |
setAppLocale(java.lang.String appLocale)
Override common schema Part A property App.Locale.
|
void |
setAppName(java.lang.String appName)
Override common schema Part A property App.Name.
|
void |
setAppVersion(java.lang.String appVersion)
Override common schema Part A property App.Version.
|
void |
setEventProperty(java.lang.String key,
boolean value)
Add or overwrite the given key for the common event properties.
|
void |
setEventProperty(java.lang.String key,
java.util.Date value)
Add or overwrite the given key for the common event properties.
|
void |
setEventProperty(java.lang.String key,
double value)
Add or overwrite the given key for the common event properties.
|
void |
setEventProperty(java.lang.String key,
long value)
Add or overwrite the given key for the common event properties.
|
void |
setEventProperty(java.lang.String key,
java.lang.String value)
Add or overwrite the given key for the common event properties.
|
void |
setUserId(java.lang.String userId)
Set the user identifier.
|
public void onPreparingLog(@NonNull
com.microsoft.appcenter.ingestion.models.Log log,
@NonNull
java.lang.String groupName)
onPreparingLog in interface com.microsoft.appcenter.channel.Channel.ListeneronPreparingLog in class com.microsoft.appcenter.channel.AbstractChannelListenerlog - A log.groupName - The group name.public void setAppName(java.lang.String appName)
appName - App name.public void setAppVersion(java.lang.String appVersion)
appVersion - App version.public void setAppLocale(java.lang.String appLocale)
appLocale - App Locale.public void setUserId(java.lang.String userId)
userId - user identifier.public void setEventProperty(java.lang.String key,
boolean value)
key - The property key. The key must not be null.value - The boolean value.public void setEventProperty(java.lang.String key,
java.util.Date value)
key - The property key. The key must not be null.value - The date value. The value cannot be null.public void setEventProperty(java.lang.String key,
double value)
key - The property key. The key must not be null.value - The double value. The value must not be NaN or infinite.public void setEventProperty(java.lang.String key,
long value)
key - The property key. The key must not be null.value - The long value.public void setEventProperty(java.lang.String key,
java.lang.String value)
key - The property key. The key must not be null.value - The string value. The value cannot be null.public void removeEventProperty(java.lang.String key)
key - The property key to be removed.public void collectDeviceId()