App
To track an event using the app package, you can use the corresponding method on the tracker instance. For example:
Example
Contoh kode
val properties = AppAppInstalledProperties()
bird.tracker.app.appInstalled(properties)Contoh kode
let properties = AppAppInstalledProperties()
bird.tracker.app.appInstalled(properties)Contoh kode
const properties: AppAppInstalledProperties = {};
Bird.tracker.app.appInstalled(properties, event_opts);Methods
appInstalled()
Contoh kode
val properties = AppAppInstalledProperties()
bird.tracker.app.appInstalled(properties)Contoh kode
let properties = AppAppInstalledProperties()
bird.tracker.app.appInstalled(properties)Contoh kode
const properties: AppAppInstalledProperties = {};
Bird.tracker.app.appInstalled(properties, event_opts);AppAppInstalledProperties
appUninstalled()
Contoh kode
val properties = AppAppUninstalledProperties()
bird.tracker.app.appUninstalled(properties)Contoh kode
let properties = AppAppUninstalledProperties()
bird.tracker.app.appUninstalled(properties)Contoh kode
const properties: AppAppUninstalledProperties = {};
Bird.tracker.app.appUninstalled(properties, event_opts);AppAppUninstalledProperties
appOpened()
Contoh kode
val properties = AppAppOpenedProperties(
fromBackground = fromBackground
)
bird.tracker.app.appOpened(properties)Contoh kode
let properties = AppAppOpenedProperties(
fromBackground: fromBackground
)
bird.tracker.app.appOpened(properties)Contoh kode
const properties: AppAppOpenedProperties = {
from_background: from_background
};
Bird.tracker.app.appOpened(properties, event_opts);AppAppOpenedProperties
| Property | Type |
|---|---|
| from_background? | Boolean |
| referring_application? | String |
| url? | String |
appUpdated()
Contoh kode
val properties = AppAppUpdatedProperties(
previousBuild = previousBuild
)
bird.tracker.app.appUpdated(properties)Contoh kode
let properties = AppAppUpdatedProperties(
previousBuild: previousBuild
)
bird.tracker.app.appUpdated(properties)Contoh kode
const properties: AppAppUpdatedProperties = {
previous_build: previous_build
};
Bird.tracker.app.appUpdated(properties, event_opts);AppAppUpdatedProperties
| Property | Type |
|---|---|
| previous_build? | String |
| previous_version? | String |
appBackgrounded()
Contoh kode
val properties = AppAppBackgroundedProperties()
bird.tracker.app.appBackgrounded(properties)Contoh kode
let properties = AppAppBackgroundedProperties()
bird.tracker.app.appBackgrounded(properties)Contoh kode
const properties: AppAppBackgroundedProperties = {};
Bird.tracker.app.appBackgrounded(properties, event_opts);AppAppBackgroundedProperties
appForegrounded()
Contoh kode
val properties = AppAppForegroundedProperties()
bird.tracker.app.appForegrounded(properties)Contoh kode
let properties = AppAppForegroundedProperties()
bird.tracker.app.appForegrounded(properties)Contoh kode
const properties: AppAppForegroundedProperties = {};
Bird.tracker.app.appForegrounded(properties, event_opts);AppAppForegroundedProperties
appCrashed()
Contoh kode
val properties = AppAppCrashedProperties(
=
)
bird.tracker.app.appCrashed(properties)Contoh kode
let properties = AppAppCrashedProperties(
:
)
bird.tracker.app.appCrashed(properties)Contoh kode
const properties: AppAppCrashedProperties = {
:
};
Bird.tracker.app.appCrashed(properties, event_opts);AppAppCrashedProperties
linkClicked()
Contoh kode
val properties = AppLinkClickedProperties(
provider = provider
)
bird.tracker.app.linkClicked(properties)Contoh kode
let properties = AppLinkClickedProperties(
provider: provider
)
bird.tracker.app.linkClicked(properties)Contoh kode
const properties: AppLinkClickedProperties = {
provider: provider
};
Bird.tracker.app.linkClicked(properties, event_opts);AppLinkClickedProperties
| Property | Type |
|---|---|
| provider? | String |
| url? | String |
screenViewed()
Contoh kode
val properties = AppScreenViewedProperties(
screenName = screenName
)
bird.tracker.app.screenViewed(properties)Contoh kode
let properties = AppScreenViewedProperties(
screenName: screenName
)
bird.tracker.app.screenViewed(properties)Contoh kode
const properties: AppScreenViewedProperties = {
screen_name: screen_name
};
Bird.tracker.app.screenViewed(properties, event_opts);AppScreenViewedProperties
| Property | Type |
|---|---|
| screen_name? | String |