• /
  • ログイン
  • 無料アカウント

withApplicationVersion (Android SDK API)

Syntax

NewRelic.withApplicationVersion(string $appVersion)

Set an application version to be associated with an interaction.

Requirements

Agent version 4.244.0 or higher.

Description

By default, the New Relic Android agent gets the app version from the AndroidManifest.xml or build.gradle. This method lets you override that value and set an app version by passing the app version. The app version is displayed as a dropdown in the New Relic UI, and can be used to sort interactions.

For general info on using this API, see the Android SDK API usage guide.

Parameters

Parameter

Description

$appVersion

string

Required. String indicating the application version.

Examples

Set app version

Example of setting an app version:

NewRelic.withApplicationVersion('1.23.4')

その他のヘルプ

さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:

問題を作成するこのページを編集する
Copyright © 2020 New Relic Inc.