Tracker | Google Play services

文章推薦指數: 80 %
投票人數:10人

Composes and sends hits to Google Analytics. You can get an instance of this class by calling newTracker(int) . A Tracker must be ... Google Playservices Language English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어 Signin Home Guides Reference Samples Support Downloads Google Playservices Home Guides Reference Samples Support Downloads PackageSummary ads ads OverviewAdErrorAdFormat AdInspectorError OverviewAdInspectorErrorCodeAdListenerAdLoadCallback AdLoader OverviewBuilder AdRequest OverviewBuilderAdSize AdValue OverviewPrecisionTypeAdViewAdapterResponseInfoBaseAdViewFullScreenContentCallbackLoadAdErrorMediaAspectRatioMediaContentMediationUtilsMobileAdsMuteThisAdListenerMuteThisAdReasonOnAdInspectorClosedListenerOnPaidEventListenerOnUserEarnedRewardListener RequestConfiguration OverviewBuilderMaxAdContentRatingTagForChildDirectedTreatmentTagForUnderAgeOfConsentResponseInfoVersionInfo VideoController OverviewVideoLifecycleCallbacks VideoOptions OverviewBuilder ads.admanager Overview AdManagerAdRequest OverviewBuilderAdManagerAdViewAdManagerInterstitialAdAdManagerInterstitialAdLoadCallbackAppEventListener ads.appopen Overview AppOpenAd OverviewAppOpenAdLoadCallbackAppOpenAdOrientation ads.formats Overview AdManagerAdViewOptions OverviewBuilderMediaView NativeAd OverviewAdChoicesInfoImage NativeAdOptions OverviewAdChoicesPlacementBuilderNativeMediaAspectRatioOnAdManagerAdViewLoadedListenerUnifiedNativeAdAssetNames ads.h5 OverviewH5AdsRequestHandlerH5AdsWebViewClientOnH5AdsEventListener ads.initialization Overview AdapterStatus OverviewStateInitializationStatusOnInitializationCompleteListener ads.interstitial OverviewInterstitialAdInterstitialAdLoadCallback ads.mediation OverviewAdapterInitializationCompleteCallbackMediationAdCallback MediationAdConfiguration OverviewTagForChildDirectedTreatmentMediationAdLoadCallbackMediationAdRequestMediationAdapterMediationBannerAdMediationBannerAdCallbackMediationBannerAdConfigurationMediationBannerAdapterMediationBannerListenerMediationConfigurationMediationExtrasReceiverMediationInterscrollerAdMediationInterstitialAdMediationInterstitialAdCallbackMediationInterstitialAdConfigurationMediationInterstitialAdapterMediationInterstitialListenerMediationNativeAdCallbackMediationNativeAdConfigurationMediationNativeAdapterMediationNativeListenerMediationRewardedAdMediationRewardedAdCallbackMediationRewardedAdConfigurationNativeMediationAdRequestNetworkExtrasOnContextChangedListenerOnImmersiveModeUpdatedListenerUnifiedNativeAdMapperVersionInfo ads.mediation.customevent OverviewCustomEventCustomEventBannerCustomEventBannerListenerCustomEventExtrasCustomEventInterstitialCustomEventInterstitialListenerCustomEventListenerCustomEventNativeCustomEventNativeListener ads.mediation.rtb OverviewRtbAdapterRtbSignalDataSignalCallbacks ads.nativead OverviewAdChoicesViewMediaView NativeAd OverviewAdChoicesInfoImageOnNativeAdLoadedListenerUnconfirmedClickListenerNativeAdAssetNames NativeAdOptions OverviewAdChoicesPlacementBuilderNativeMediaAspectRatioNativeAdViewNativeAdViewHolder NativeCustomFormatAd OverviewDisplayOpenMeasurementOnCustomClickListenerOnCustomFormatAdLoadedListener ads.rewarded OverviewOnAdMetadataChangedListenerRewardItemRewardedAdRewardedAdLoadCallback ServerSideVerificationOptions OverviewBuilder ads.rewardedinterstitial OverviewRewardedInterstitialAdRewardedInterstitialAdLoadCallback ads.search Overview DynamicHeightSearchAdRequest OverviewBuilderSearchAdView ads.identifier ads.identifier Overview AdvertisingIdClient OverviewInfo analytics analytics OverviewCampaignTrackingReceiverCampaignTrackingServiceExceptionParserExceptionReporterGoogleAnalytics HitBuilders OverviewAppViewBuilderEventBuilderExceptionBuilderHitBuilderItemBuilderScreenViewBuilderSocialBuilderTimingBuilderTransactionBuilder Logger OverviewLogLevelStandardExceptionParserTracker analytics.ecommerce OverviewProductProductActionPromotion analytics.app.library analytics OverviewAnalyticsJobServiceAnalyticsReceiverAnalyticsService appindex appindex Overview Action OverviewBuilderAppIndexAppIndexExceptionAppIndexInvalidArgumentExceptionAppIndexTooManyArgumentsException Indexable OverviewBuilder Indexable.Metadata OverviewBuilderThingPropertyKeysUserActions appindex.builders OverviewIndexableBuilder appindexing appindexing Overview Action OverviewBuilderAndroidAppUriAppIndex AppIndexApi OverviewActionResultAppIndexingLink Thing OverviewBuilder search OverviewGoogleNowAuthState SearchAuth OverviewStatusCodes SearchAuthApi OverviewGoogleNowAuthResult appset appset OverviewAppSetAppSetIdClient AppSetIdInfo OverviewScope auth auth OverviewAccountChangeEventAccountChangeEventsRequestAccountChangeEventsResponseCookieUtilGoogleAuthExceptionGoogleAuthUtilGooglePlayServicesAvailabilityExceptionUserRecoverableAuthExceptionUserRecoverableNotifiedException auth.account OverviewWorkAccount WorkAccountApi OverviewAddAccountResultWorkAccountClient auth.api.accounttransfer OverviewAccountTransferAccountTransferClientAccountTransferExceptionAccountTransferStatusCodesAuthenticatorTransferCompletionStatusDeviceMetaData auth.api auth.api Overview Auth Overview Auth.AuthCredentialsOptions OverviewBuilder auth.api.credentials Overview Credential OverviewBuilder CredentialPickerConfig OverviewBuilderPrompt CredentialRequest OverviewBuilderCredentialRequestResponseCredentialRequestResultCredentialsCredentialsApiCredentialsClient CredentialsOptions OverviewBuilder HintRequest OverviewBuilderIdTokenIdentityProviders auth.api.identity Overview BeginSignInRequest OverviewBuilder BeginSignInRequest.GoogleIdTokenRequestOptions OverviewBuilder BeginSignInRequest.PasswordRequestOptions OverviewBuilderBeginSignInResultCredentialSavingClient GetPhoneNumberHintIntentRequest OverviewBuilder GetSignInIntentRequest OverviewBuilderIdentity SaveAccountLinkingTokenRequest OverviewBuilderSaveAccountLinkingTokenResult SavePasswordRequest OverviewBuilderSavePasswordResultSignInClientSignInCredentialSignInPassword auth.api.signin OverviewGoogleSignInGoogleSignInApiGoogleSignInClientGoogleSignInResultGoogleSignInStatusCodesRevocationBoundService auth.api.phone auth.api.phone Overview SmsCodeAutofillClient OverviewPermissionStateSmsCodeBrowserClientSmsCodeRetrieverSmsRetrieverSmsRetrieverApiSmsRetrieverClientSmsRetrieverStatusCodes auth.blockstore auth.blockstore OverviewBlockstoreBlockstoreClient StoreBytesData OverviewBuilder auth.managed.password auth.managed.password OverviewPasswordComplexityCheckResultPasswordComplexityServiceClient awareness awareness OverviewAwarenessAwarenessStatusCodesFenceApiFenceClientSnapshotApiSnapshotClient awareness.fence OverviewAwarenessFenceBeaconFenceDetectedActivityFenceFenceQueryRequestFenceQueryResponseFenceQueryResultFenceStateFenceStateMap FenceUpdateRequest OverviewBuilderHeadphoneFenceLocationFenceTimeFence awareness.snapshot OverviewBeaconStateResponseBeaconStateResultDetectedActivityResponseDetectedActivityResultHeadphoneStateResponseHeadphoneStateResultLocationResponseLocationResultTimeIntervalsResponseTimeIntervalsResult awareness.state Overview BeaconState OverviewBeaconInfoTypeFilterHeadphoneStateTimeIntervals base auth.api.signin OverviewGoogleSignInAccount GoogleSignInOptions OverviewBuilderGoogleSignInOptionsExtension common OverviewErrorDialogFragmentGoogleApiAvailabilityGooglePlayServicesUtil SignInButton OverviewButtonSizeColorSchemeSupportErrorDialogFragment common.api Overview Api Overview Api.ApiOptions OverviewHasAccountOptionsHasGoogleSignInAccountOptionsHasOptionsNoOptionsNotRequiredOptionsOptionalAvailabilityException Batch OverviewBuilderBatchResultBatchResultTokenBooleanResultGoogleApiGoogleApiActivity GoogleApiClient OverviewBuilderConnectionCallbacksOnConnectionFailedListenerHasApiKeyOptionalModuleApiOptionalPendingResultPendingResultPendingResultsResultTransformTransformedResult common.data OverviewAbstractDataBufferDataBuffer DataBufferObserver OverviewObservableDataBufferObserverSetDataBufferUtilsFreezableFreezableUtils common.images Overview ImageManager OverviewOnImageLoadedListenerSizeWebImage common.moduleinstall OverviewInstallStatusListener ModuleAvailabilityResponse OverviewAvailabilityStatusModuleInstallModuleInstallClientModuleInstallIntentResponse ModuleInstallRequest OverviewBuilderModuleInstallResponseModuleInstallStatusCodes ModuleInstallStatusUpdate OverviewInstallStateProgressInfo base.testing common.testing OverviewFakeModuleInstallClientFakeModuleInstallUtil basement actions OverviewItemListIntentsNoteIntentsReserveIntentsSearchIntents common Overview AccountPicker Overview AccountPicker.AccountChooserOptions OverviewBuilderConnectionResultGooglePlayServicesIncorrectManifestValueExceptionGooglePlayServicesManifestExceptionGooglePlayServicesMissingManifestValueExceptionGooglePlayServicesNotAvailableExceptionGooglePlayServicesRepairableExceptionScopesUserRecoverableException common.api OverviewApiExceptionAvailabilityExceptionCommonStatusCodesGoogleApiReleasableResolvableApiExceptionResolvingResultCallbacksResponseResultResultCallbackResultCallbacksResultTransformScopeStatusUnsupportedApiCallException security Overview ProviderInstaller OverviewProviderInstallListener firebase OverviewFirebaseApiNotAvailableExceptionFirebaseException cast cast Overview AdBreakClipInfo OverviewBuilder AdBreakInfo OverviewBuilder AdBreakStatus OverviewBuilderApplicationMetadata Cast OverviewApplicationConnectionResultCastApi Cast.CastOptions OverviewBuilderListenerMessageReceivedCallbackCastDeviceCastMediaControlIntentCastPresentation CastRemoteDisplay Overview CastRemoteDisplay.CastRemoteDisplayOptions OverviewBuilderCastRemoteDisplaySessionCallbacksCastRemoteDisplaySessionResultConfigurationCastRemoteDisplayApiCastRemoteDisplayClient CastRemoteDisplayLocalService OverviewCallbacks CastRemoteDisplayLocalService.NotificationSettings OverviewBuilderOptionsCastStatusCodes CredentialsData OverviewBuilderHlsSegmentFormatHlsVideoSegmentFormat LaunchOptions OverviewBuilder MediaError OverviewBuilderDetailedErrorCode MediaInfo OverviewBuilder MediaLiveSeekableRange OverviewBuilder MediaLoadOptions OverviewBuilder MediaLoadRequestData OverviewBuilderMediaMetadata MediaQueueContainerMetadata OverviewBuilderMediaQueueContainerType MediaQueueData OverviewBuilderMediaQueueType MediaQueueItem OverviewBuilder MediaSeekOptions OverviewBuilderResumeStateMediaStatus MediaTrack OverviewBuilder RemoteMediaPlayer OverviewMediaChannelResultOnMetadataUpdatedListenerOnPreloadStatusUpdatedListenerOnQueueStatusUpdatedListenerOnStatusUpdatedListenerRequestData SessionState OverviewBuilderTextTrackStyle VastAdsRequest OverviewBuilder VideoInfo OverviewBuilder cast.framework cast.framework OverviewAppVisibilityListenerCastButtonFactoryCastContext CastOptions OverviewBuilder CastReasonCodes OverviewCastReasonTypeCastSessionCastStateCastStateListener IntroductoryOverlay OverviewBuilderOnOverlayDismissedListenerMediaNotificationManagerOptionsProviderPrecacheManagerReconnectionServiceSessionSessionManagerSessionManagerListenerSessionProvider cast.framework.media Overview CastMediaOptions OverviewBuilderImageHintsImagePickerMediaIntentReceiverMediaNotificationService MediaQueue OverviewCallbackMediaQueueArrayAdapterMediaQueueRecyclerViewAdapterMediaUtils NotificationAction OverviewBuilderNotificationActionsProvider NotificationOptions OverviewBuilder RemoteMediaClient OverviewCallbackListenerMediaChannelResultParseAdsInfoCallbackProgressListenerTracksChooserDialogFragment cast.framework.media.uicontroller OverviewUIControllerUIMediaController cast.framework.media.widget OverviewCastSeekBarControlButtonsContainerExpandedControllerActivityMiniControllerFragment cast.tv cast.tv OverviewCastLaunchRequest CastReceiverContext OverviewEventCallbackMessageReceivedListener CastReceiverOptions OverviewBuilderLaunchRequestCheckerCastReceiverUtilsReceiverOptionsProvider SenderDisconnectedEventInfo OverviewDisconnectReasonSenderInfo cast.tv.cac OverviewUserActionUserActionContext cast.tv.media OverviewEditAudioTracksDataEditTracksInfoDataFetchItemsRequestDataMediaCommandCallbackMediaExceptionMediaInfoModifierMediaInfoWriterMediaLoadCommandCallback MediaManager OverviewMediaStatusInterceptorMediaMetadataModifierMediaQueueItemWriterMediaQueueManagerMediaResumeSessionRequestDataMediaStatusModifierMediaStatusWriterMediaTracksModifierQueueInsertRequestDataQueueRemoveRequestDataQueueReorderRequestDataQueueUpdateRequestData SeekRequestData OverviewSeekResumeStateSetPlaybackRateRequestDataStoreSessionRequestData StoreSessionResponseData OverviewBuilderUserActionRequestData cloudmessaging cloudmessaging Overview CloudMessage OverviewMessagePriority CloudMessagingReceiver OverviewIntentActionKeysIntentKeysRpc cronet net OverviewCronetProviderInstaller drive drive OverviewCreateFileActivityBuilder CreateFileActivityOptions OverviewBuilderDrive DriveApi OverviewDriveContentsResultDriveIdResultMetadataBufferResultDriveClientDriveContents DriveFile OverviewDownloadProgressListenerOpenMode DriveFolder OverviewDriveFileResultDriveFolderResultDriveId DrivePreferencesApi OverviewFileUploadPreferencesResult DriveResource OverviewMetadataResultDriveResourceClientDriveStatusCodes ExecutionOptions OverviewBuilderFileUploadPreferencesMetadataMetadataBuffer MetadataChangeSet OverviewBuilderOpenFileActivityBuilder OpenFileActivityOptions OverviewBuilder TransferPreferences OverviewBatteryUsageNetworkTypeTransferPreferencesBuilder drive.events OverviewChangeEventChangeListenerCompletionEventCompletionListenerDriveEventDriveEventServiceListenerTokenOnChangeListenerOpenFileCallbackResourceEvent drive.metadata OverviewCustomPropertyKeyMetadataFieldSearchableCollectionMetadataFieldSearchableMetadataFieldSearchableOrderedMetadataFieldSortableMetadataField drive.query OverviewFilterFilters Query OverviewBuilderSearchableField SortOrder OverviewBuilderSortableField drive.widget OverviewDataBufferAdapter fido fido OverviewFido fido.common Overview Transport OverviewUnsupportedTransportException fido.fido2 OverviewFido2ApiClientFido2PendingIntentFido2PrivilegedApiClient fido.fido2.api.common OverviewAlgorithm Attachment OverviewUnsupportedAttachmentException AttestationConveyancePreference OverviewUnsupportedAttestationConveyancePreferenceException AuthenticationExtensions OverviewBuilder AuthenticationExtensionsClientOutputs OverviewBuilderAuthenticatorAssertionResponseAuthenticatorAttestationResponseAuthenticatorErrorResponseAuthenticatorResponse AuthenticatorSelectionCriteria OverviewBuilder BrowserPublicKeyCredentialCreationOptions OverviewBuilder BrowserPublicKeyCredentialRequestOptions OverviewBuilderBrowserRequestOptions COSEAlgorithmIdentifier OverviewUnsupportedAlgorithmIdentifierExceptionEC2Algorithm ErrorCode OverviewUnsupportedErrorCodeExceptionFidoAppIdExtensionKeyProtectionTypesMatcherProtectionTypes PublicKeyCredential OverviewBuilder PublicKeyCredentialCreationOptions OverviewBuilder PublicKeyCredentialDescriptor OverviewUnsupportedPubKeyCredDescriptorExceptionPublicKeyCredentialParameters PublicKeyCredentialRequestOptions OverviewBuilderPublicKeyCredentialRpEntity PublicKeyCredentialType OverviewUnsupportedPublicKeyCredTypeExceptionPublicKeyCredentialUserEntityRSAAlgorithmRequestOptions TokenBinding OverviewTokenBindingStatusUnsupportedTokenBindingStatusExceptionUserVerificationMethodExtensionUserVerificationMethods UvmEntries OverviewBuilder UvmEntry OverviewBuilder fido.sourcedevice OverviewSourceDirectTransferClientSourceDirectTransferResultSourceStartDirectTransferOptions fido.u2f OverviewU2fApiClientU2fPendingIntent fido.u2f.api.common Overview ChannelIdValue OverviewChannelIdValueTypeUnsupportedChannelIdValueTypeException ClientData OverviewBuilderErrorErrorCodeErrorResponseDataKeyHandle ProtocolVersion OverviewUnsupportedProtocolExceptionRegisterRequest RegisterRequestParams OverviewBuilderRegisterResponseDataRegisteredKeyRequestParamsResponseData SignRequestParams OverviewBuilderSignResponseData fido.u2f.api.messagebased Overview RequestType OverviewUnsupportedRequestTypeExceptionResponseType fitness fitness OverviewBleApiBleClientConfigApiConfigClientFitnessFitnessActivities FitnessOptions OverviewBuilderFitnessStatusCodesGoalsApiGoalsClient HistoryApi OverviewViewIntentBuilderHistoryClientRecordingApiRecordingClientSensorsApiSensorsClient SessionsApi OverviewViewIntentBuilderSessionsClient fitness.data OverviewBleDeviceBucket DataPoint OverviewBuilder DataSet OverviewBuilder DataSource OverviewBuilderDataTypeDataUpdateNotificationDeviceField Goal OverviewDurationObjectiveFrequencyObjectiveMetricObjectiveMismatchedGoalExceptionObjectiveType Goal.Recurrence OverviewRecurrenceUnitHealthDataTypesHealthFields Session OverviewBuilderSleepStagesSubscriptionValueWorkoutExercises fitness.request OverviewBleScanCallback DataDeleteRequest OverviewBuilder DataReadRequest OverviewBuilder DataSourcesRequest OverviewBuilder DataTypeCreateRequest OverviewBuilder DataUpdateListenerRegistrationRequest OverviewBuilder DataUpdateRequest OverviewBuilder GoalsReadRequest OverviewBuilderOnDataPointListener SensorRequest OverviewBuilder SessionInsertRequest OverviewBuilder SessionReadRequest OverviewBuilder StartBleScanRequest OverviewBuilder fitness.result OverviewBleDevicesResultDailyTotalResultDataReadResponseDataReadResultDataSourcesResultDataTypeResultGoalsResultListSubscriptionsResultSessionReadResponseSessionReadResultSessionStopResult fitness.service OverviewFitnessSensorServiceFitnessSensorServiceRequestSensorEventDispatcher games games OverviewAchievementsClientAnnotatedDataAuthenticationResultCurrentPlayerInfoEventsClientFriendsResolutionRequiredExceptionGameGameBufferGameEntity Games Overview Games.GamesOptions OverviewBuilderGamesActivityResultCodesGamesCallbackStatusCodesGamesClientGamesClientStatusCodes GamesMetadata OverviewLoadGamesResultGamesMetadataClientGamesSignInClientGamesStatusCodes LeaderboardsClient OverviewLeaderboardScores PageDirection OverviewDirectionPlayGamesPlayGamesSdk Player OverviewFriendsListVisibilityStatusPlayerFriendStatusPlayerBufferPlayerEntityPlayerLevelPlayerLevelInfoPlayerRelationshipInfoPlayerStatsClient Players OverviewLoadPlayersResultPlayersClient SnapshotsClient OverviewDataOrConflictResolutionPolicySnapshotConflictSnapshotContentUnavailableApiException VideosClient OverviewOnCaptureOverlayStateListener games.achievement Overview Achievement OverviewAchievementStateAchievementTypeAchievementBufferAchievementEntity Achievements OverviewLoadAchievementsResultUpdateAchievementResult games.event OverviewEventEventBufferEventEntity Events OverviewLoadEventsResult games.leaderboard OverviewLeaderboardLeaderboardBufferLeaderboardScoreLeaderboardScoreBuffer LeaderboardVariant OverviewCollectionTimeSpan Leaderboards OverviewLeaderboardMetadataResultLoadPlayerScoreResultLoadScoresResultSubmitScoreResult ScoreSubmissionData OverviewResult games.snapshot OverviewSnapshotSnapshotContentsSnapshotEntitySnapshotMetadataSnapshotMetadataBuffer SnapshotMetadataChange OverviewBuilderSnapshotMetadataEntity Snapshots OverviewCommitSnapshotResultDeleteSnapshotResultLoadSnapshotsResultOpenSnapshotResult games.stats OverviewPlayerStatsPlayerStatsBuffer Stats OverviewLoadPlayerStatsResult games.video OverviewCaptureStateVideoCapabilities VideoConfiguration OverviewBuilderValidCaptureModes Videos OverviewCaptureAvailableResultCaptureCapabilitiesResultCaptureOverlayStateListenerCaptureStateResult gcm gcm OverviewGcmNetworkManagerGcmTaskService OneoffTask OverviewBuilder PeriodicTask OverviewBuilder Task OverviewBuilderTaskParams identity identity.intents Overview Address OverviewAddressOptions AddressConstants OverviewErrorCodesExtrasResultCodesThemes UserAddressRequest OverviewBuilder identity.intents.model OverviewCountrySpecificationUserAddress iid iid OverviewInstanceIDInstanceIDListenerService instantapps instantapps OverviewActivityCompat InstantAppIntentData OverviewMatchResultInstantAppsInstantAppsClientLaunchDataLauncherPackageManagerCompat location location OverviewActivityRecognitionActivityRecognitionApiActivityRecognitionClientActivityRecognitionResult ActivityTransition OverviewBuilderSupportedActivityTransitionActivityTransitionEventActivityTransitionRequestActivityTransitionResult CurrentLocationRequest OverviewBuilderDetectedActivityFusedLocationProviderApiFusedLocationProviderClient Geofence OverviewBuilderGeofenceTransitionTransitionTypesGeofenceStatusCodesGeofencingApiGeofencingClientGeofencingEvent GeofencingRequest OverviewBuilderInitialTriggerGranularity LastLocationRequest OverviewBuilderLocationAvailabilityLocationCallbackLocationListenerLocationRequestLocationResultLocationServices LocationSettingsRequest OverviewBuilderLocationSettingsResponseLocationSettingsResultLocationSettingsStatesLocationSettingsStatusCodesLocationStatusCodesPrioritySettingsApiSettingsClientSleepClassifyEventSleepSegmentEventSleepSegmentRequest maps maps OverviewCameraUpdateCameraUpdateFactory GoogleMap OverviewCancelableCallbackInfoWindowAdapterOnCameraChangeListenerOnCameraIdleListenerOnCameraMoveCanceledListenerOnCameraMoveListenerOnCameraMoveStartedListenerOnCircleClickListenerOnGroundOverlayClickListenerOnIndoorStateChangeListenerOnInfoWindowClickListenerOnInfoWindowCloseListenerOnInfoWindowLongClickListenerOnMapClickListenerOnMapLoadedCallbackOnMapLongClickListenerOnMarkerClickListenerOnMarkerDragListenerOnMyLocationButtonClickListenerOnMyLocationChangeListenerOnMyLocationClickListenerOnPoiClickListenerOnPolygonClickListenerOnPolylineClickListenerSnapshotReadyCallbackGoogleMapOptions LocationSource OverviewOnLocationChangedListenerMapFragmentMapView MapsInitializer OverviewRendererOnMapReadyCallbackOnMapsSdkInitializedCallbackOnStreetViewPanoramaReadyCallbackProjection StreetViewPanorama OverviewOnStreetViewPanoramaCameraChangeListenerOnStreetViewPanoramaChangeListenerOnStreetViewPanoramaClickListenerOnStreetViewPanoramaLongClickListenerStreetViewPanoramaFragmentStreetViewPanoramaOptionsStreetViewPanoramaViewSupportMapFragmentSupportStreetViewPanoramaFragmentUiSettings maps.model OverviewBitmapDescriptorBitmapDescriptorFactoryButtCap CameraPosition OverviewBuilderCapCircleCircleOptionsCustomCapDashDotGapGroundOverlayGroundOverlayOptionsIndoorBuildingIndoorLevelJointTypeLatLng LatLngBounds OverviewBuilderMapStyleOptionsMarkerMarkerOptionsPatternItemPointOfInterestPolygonPolygonOptionsPolylinePolylineOptionsRoundCapRuntimeRemoteException SpriteStyle OverviewBuilderSquareCapStampStyle StreetViewPanoramaCamera OverviewBuilderStreetViewPanoramaLinkStreetViewPanoramaLocation StreetViewPanoramaOrientation OverviewBuilderStreetViewSource StrokeStyle OverviewBuilderStyleSpan TextureStyle OverviewBuilderTileTileOverlayTileOverlayOptionsTileProviderUrlTileProviderVisibleRegion measurement measurement OverviewAppMeasurementContentProviderAppMeasurementJobServiceAppMeasurementReceiverAppMeasurementService measurement.api firebase.analytics Overview FirebaseAnalytics OverviewConsentStatusConsentTypeEventParamUserProperty measurement.impl measurement OverviewAppMeasurementContentProvider mlkit mlkit nearby nearby OverviewNearby nearby.connection Overview AdvertisingOptions OverviewBuilderAppIdentifierAppMetadata BandwidthInfo OverviewQualityConnectionInfoConnectionLifecycleCallback ConnectionOptions OverviewBuilderConnectionResolutionConnectionType Connections OverviewConnectionRequestListenerConnectionResponseCallbackEndpointDiscoveryListenerMessageListenerStartAdvertisingResultConnectionsClient ConnectionsOptions OverviewBuilderConnectionsStatusCodesDiscoveredEndpointInfo DiscoveryOptions OverviewBuilderEndpointDiscoveryCallback Payload OverviewFileStreamTypePayloadCallback PayloadTransferUpdate OverviewBuilderStatusStrategy nearby.exposurenotification OverviewCalibrationConfidence DailySummariesConfig OverviewDailySummariesConfigBuilder DailySummary OverviewExposureSummaryDataDiagnosisKeyFileProvider DiagnosisKeysDataMapping OverviewDiagnosisKeysDataMappingBuilder ExposureConfiguration OverviewExposureConfigurationBuilder ExposureInformation OverviewExposureInformationBuilderExposureNotificationClientExposureNotificationStatusExposureNotificationStatusCodes ExposureSummary OverviewExposureSummaryBuilder ExposureWindow OverviewBuilderInfectiousness PackageConfiguration OverviewPackageConfigurationBuilderReportTypeRiskLevel ScanInstance OverviewBuilder TemporaryExposureKey OverviewTemporaryExposureKeyBuilderVariantOfConcern nearby.messages OverviewBleSignal Distance OverviewAccuracyEddystoneUidIBeaconIdMessage MessageFilter OverviewBuilderMessageListenerMessagesMessagesClient MessagesOptions OverviewBuilderNearbyMessagesStatusCodesNearbyPermissionsPublishCallback PublishOptions OverviewBuilderStatusCallback Strategy OverviewBuilderSubscribeCallback SubscribeOptions OverviewBuilder nearby.messages.audio OverviewAudioBytes nearby.uwb OverviewRangingCapabilitiesRangingMeasurement RangingParameters OverviewBuilderRangingUpdateRateUwbConfigIdRangingPosition RangingSessionCallback OverviewRangingSuspendedReasonUwbAddressUwbClient UwbComplexChannel OverviewBuilderUwbDeviceUwbStatusCodes oss.licenses oss.licenses OverviewOssLicensesActivityOssLicensesMenuActivity panorama panorama OverviewPanorama PanoramaApi OverviewPanoramaResult pay pay OverviewPayPayApiAvailabilityStatus PayClient OverviewRequestTypeSavePassesResult places.placereport location.places OverviewPlaceReport plus plus OverviewAccount People OverviewLoadPeopleResultOrderBy Plus Overview Plus.PlusOptions OverviewBuilder PlusOneButton OverviewDefaultOnPlusOneClickListenerOnPlusOneClickListenerPlusOneDummyView PlusShare OverviewBuilder plus.model.people Overview Person OverviewAgeRange Person.Cover OverviewCoverInfoCoverPhotoLayoutGenderImageNameObjectType Person.Organizations OverviewTypePlacesLivedRelationshipStatus Person.Urls OverviewTypePersonBuffer recaptcha recaptcha OverviewHttpStatusExceptionRecaptchaRecaptchaAction RecaptchaActionType OverviewActionRecaptchaClientRecaptchaHandleRecaptchaNetworkExceptionRecaptchaOptionalObjectRecaptchaResultDataRecaptchaStatusCodesVerificationHandleVerificationResult safetynet safetynet OverviewHarmfulAppsDataSafeBrowsingThreatSafetyNet SafetyNetApi OverviewAttestationResponseHarmfulAppsResponseRecaptchaTokenResponseRecaptchaTokenResultSafeBrowsingResponseVerifyAppsUserResponseSafetyNetClientSafetyNetStatusCodesVerifyAppsConstants com.google.android.vending.verifier Overview IListHarmfulAppsCallback Overview IListHarmfulAppsCallback.Stub OverviewProxy IPackageVerificationApiService Overview IPackageVerificationApiService.Stub OverviewProxy IVerifyAppsDataCallback Overview IVerifyAppsDataCallback.Stub OverviewProxy stats stats OverviewCodePackage streamprotect streamprotect OverviewClockTypeFeatureNotEnabledExceptionFeatureNotSupportedExceptionFrameInfoOnStreamProtectEventListenerStreamProtectStreamProtectClientStreamProtectEvent StreamProtectOptions OverviewBuilder tagmanager tagmanager OverviewCustomTagProviderCustomVariableProviderTagManagerPreviewActivityTagManagerService tagmanager.legacy tagmanager Overview Container OverviewFunctionCallMacroCallbackFunctionCallTagCallback ContainerHolder OverviewContainerAvailableListenerDataLayerInstallReferrerReceiverInstallReferrerServicePreviewActivityTagManager tasks tasks OverviewCancellationTokenCancellationTokenSourceContinuationDuplicateTaskCompletionExceptionOnCanceledListenerOnCompleteListenerOnFailureListenerOnSuccessListenerOnTokenCanceledListenerRuntimeExecutionExceptionSuccessContinuationTaskTaskCompletionSourceTaskExecutorsTasks tflite tflite.java OverviewTfLite threadnetwork threadnetwork vision vision.barcode Overview Barcode OverviewAddressCalendarDateTimeCalendarEventContactInfoDriverLicenseEmailGeoPointPersonNamePhoneSmsUrlBookmarkWiFi BarcodeDetector OverviewBuilder vision.face OverviewContourFace FaceDetector OverviewBuilderLandmark LargestFaceFocusingProcessor OverviewBuilder vision.text OverviewElementLineTextTextBlock TextRecognizer OverviewBuilder vision.common vision Overview CameraSource OverviewBuilderPictureCallbackShutterCallback Detector OverviewDetectionsProcessorFocusingProcessor Frame OverviewBuilderMetadata MultiDetector OverviewBuilder MultiProcessor OverviewBuilderFactoryTracker wallet wallet OverviewAutoResolvableResultAutoResolvableVoidResultAutoResolveHelperCardInfo CardRequirements OverviewBuilder CreateWalletObjectsRequest OverviewBuilderCreateModeCreditCardExpirationDate GiftCardWalletObject OverviewBuilder InstrumentInfo OverviewCardClass IsReadyToPayRequest OverviewBuilder LoyaltyWalletObject OverviewBuilder OfferWalletObject OverviewBuilder PaymentCardRecognitionIntentRequest OverviewBuilderPaymentCardRecognitionIntentResponsePaymentCardRecognitionResultPaymentData PaymentDataRequest OverviewBuilderPaymentInstrumentTypePaymentMethodToken PaymentMethodTokenizationParameters OverviewBuilderPaymentsClient ShippingAddressRequirements OverviewBuilder TransactionInfo OverviewBuilder Wallet Overview Wallet.WalletOptions OverviewBuilder WalletConstants OverviewBillingAddressFormatCardClassCardNetworkPaymentCardRecognitionTypePaymentMethodPaymentMethodTokenizationTypeTotalPriceStatusWalletObjectsClient wallet.wobs OverviewLabelValue LabelValueRow OverviewBuilder LoyaltyPoints OverviewBuilder LoyaltyPointsBalance OverviewBuilderTypeTextModuleDataTimeIntervalUriData WalletObjectMessage OverviewBuilderWalletObjects WalletObjectsConstants OverviewState wearable wearable OverviewAsset CapabilityApi OverviewAddLocalCapabilityResultCapabilityFilterTypeCapabilityListenerGetAllCapabilitiesResultGetCapabilityResultNodeFilterTypeRemoveLocalCapabilityResult CapabilityClient OverviewCapabilityFilterTypeNodeFilterTypeOnCapabilityChangedListenerCapabilityInfo Channel OverviewGetInputStreamResultGetOutputStreamResult ChannelApi OverviewChannelListenerCloseReasonOpenChannelResult ChannelClient OverviewChannelChannelCallbackCloseReasonChannelIOException DataApi OverviewDataItemResultDataListenerDeleteDataItemsResultFilterTypeGetFdForAssetResult DataClient OverviewFilterTypeGetFdForAssetResponseOnDataChangedListenerDataEventDataEventBufferDataItemDataItemAssetDataItemBufferDataMapDataMapItem MessageApi OverviewFilterTypeMessageListenerSendMessageResult MessageClient OverviewFilterTypeOnMessageReceivedListenerMessageEventNode NodeApi OverviewGetConnectedNodesResultGetLocalNodeResultNodeClientPutDataMapRequestPutDataRequest Wearable Overview Wearable.WearableOptions OverviewBuilderWearableListenerServiceWearableStatusCodes Home Products GooglePlayservices Reference Tracker publicclass Tracker extendsObject ComposesandsendshitstoGoogleAnalytics.Youcangetaninstanceofthisclassbycalling newTracker(int).ATrackermustbeinitializedwithatrackingidofanapp profilebeforeyoucansendanyhits.Usethisclasstosetvaluesformeasurementprotocol parametersusingtheprovidedsetmethods.Aparamvaluesetusingset(String,String)methodissent withallsubsequenthitsuntilyouoverwriteitwithanothervalueorclearitbysettingitto null.Youcanalsooverrideitbyspecifyingadifferentvalueinasend(Map)call. Thevaluespassedinthesend(Map)aresentonlywiththathit.Thefollowingexampleuses theHitBuilders.EventBuilderhelperclasstobuildaparammaptopasstothesend(Map)method. GoogleAnalyticsanalytics=GoogleAnalytics.getInstance(context); Trackertracker=analytics.newTracker("UA-000-1");//SendhitstotrackeridUA-000-1 //Allsubsequenthitswillbesendwithscreenname="mainscreen" tracker.setScreenName("mainscreen"); tracker.send(newHitBuilders.EventBuilder() .setCategory("UX") .setAction("click") .setLabel("submit") .build()); //Builderparameterscanoverwritethescreennamesetonthetracker tracker.send(newHitBuilders.EventBuilder() .setCategory("UX") .setAction("click") .setLabel("helppopup") .setScreenName("helppopupdialog") .build()); ATrackercanalsobeinitializedwithconfigurationvaluesfromanXMLresourcefile likethis: Trackertracker=analytics.newTracker(R.xml.tracker_config); WhereR.xml.tracker_configistheresourceidforanXMLconfigurationfile.Thefileshouldbe storedintheapp'sres/xml/directoryandlooklikethis: UA-0000-1 100.0 1800 true false true HomeScreen SecondScreen Thefollowingtrackerconfigurationvaluescanbespecified: ga_trackingId(string)-trackingidtosendthereportsto.Required. ga_sampleFrequency(string)-samplingrateinpercents.Defaultis100.0.Itcanbeany valuebetween0.0and100.0. ga_autoActivityTracking(bool)-iftrue,views(Activities)willbetracked.Defaultis false. ga_anonymizeIp(bool)-iftrue,anonymizeIpwillbesetforeachhit.Defaultisfalse. ga_reportUncaughtExceptions(bool)-iftrue,uncaughtexceptionswillbetracked.Default isfalse.NOTE:ThisvaluecanonlybesettotrueforasingleTracker.Ifspecifiedfor multipleTrackers,thenthelastonetobeinitializedwillbeused. ga_sessionTimeout(int)-time(inseconds)anappcanstayinthebackgroundbeforeanew sessionisstarted.Settingthistoanegativenumberwillresultinanewsessionnever beingstarted.Defaultis1800seconds(30minutes). Ifga_autoActivityTrackingisenabled,analternatescreennamecanbespecifiedtosubstitute forthefullcanonicalActivityclassname.Inordertospecifyanalternatescreenname useanelement,withthenameattributespecifyingthefullclassname,and thescreennameaselementcontent. HomeScreen PublicMethodSummary void enableAdvertisingIdCollection(booleanenabled) Setswhethertheadvertisingidandadtargetingpreferenceshouldbecollectedwhilesending hitstoGAservers. void enableAutoActivityTracking(booleanenabled) SpecifywhetherActivitystartsshouldautomaticallygeneratescreenviews fromthisTracker. void enableExceptionReporting(booleanenable) Enablesordisablesuncaughtexceptionreportingforagiventracker. String get(Stringkey) Getsthemodelvalueforthegivenkey. void send(Mapparams) MergesthemodelvaluessetonthisTrackerviasend(Map)withparamsand generatesahittobesent. void set(Stringkey,Stringvalue) Setsthemodelvalueforthegivenkey. void setAnonymizeIp(booleananonymize) void setAppId(StringappId) SetstheidoftheAppforanalyticsreports. void setAppInstallerId(StringappInstallerId) SetstheInstallerIdoftheAppforanalyticsreports. void setAppName(StringappName) SetsthenameoftheAppforanalyticsreports. void setAppVersion(StringappVersion) SetstheversionidentifieroftheAppforanalyticsreports. void setCampaignParamsOnNextHit(Uriuri) IncludesthecampaignparameterscontainedintheURIreferrerinthenexthit. void setClientId(StringclientId) SetsaparticularclientIdforthedevice. void setEncoding(Stringencoding) void setHostname(Stringhostname) void setLanguage(Stringlanguage) Setsthelanguagebasedonuser'spreferredlocale. void setLocation(Stringlocation) void setPage(Stringpage) void setReferrer(Stringreferrer) void setSampleRate(doublesampleRate) Setthesamplerateforallhitsgeneratedbytheapp. void setScreenColors(StringscreenColors) void setScreenName(StringscreenName) Setthescreennametobeassociatedwithallsubsequenthits. void setScreenResolution(intwidth,intheight) Setsthescreenresolutionofthedevice. void setSessionTimeout(longsessionTimeout) Specifythetime(inseconds)anappcanstayinthebackgroundbeforeanewsessionis started. void setTitle(Stringtitle) void setUseSecure(booleanuseSecure) Setswhetherhitsshouldbesentsecurelyoverhttps. void setViewportSize(StringviewportSize) InheritedMethodSummary Fromclass java.lang.Object Object clone() boolean equals(Objectarg0) void finalize() final Class> getClass() int hashCode() final void notify() final void notifyAll() String toString() final void wait(longarg0,intarg1) final void wait(longarg0) final void wait() PublicMethods public void enableAdvertisingIdCollection (booleanenabled) Setswhethertheadvertisingidandadtargetingpreferenceshouldbecollectedwhilesending hitstoGAservers.Thecollectionofadvertisingidandtheadtargetingpreferenceis disabledbydefaultandneedstobeturnedonformobileaudiencefeaturesandanyother featuresthatrequireadvertisingid. Parameters enabled trueiftheadvertisinginformationshouldbecollected.Falseotherwise. public void enableAutoActivityTracking (booleanenabled) SpecifywhetherActivitystartsshouldautomaticallygeneratescreenviews fromthisTracker. Parameters enabled Trueifscreenviewsshouldbeautomaticallygenerated. public void enableExceptionReporting (booleanenable) Enablesordisablesuncaughtexceptionreportingforagiventracker.Thismethodisequivalent tousing'ga_reportUncaughtExceptions'inthetrackerconfigurationfile.Notethataswiththe configurationsetting,onlytheuncaughtexceptionsarereportedusingthismethod. public String get (Stringkey) Getsthemodelvalueforthegivenkey.Returnsnullifnomodelvaluehasbeenset. public void send (Mapparams) MergesthemodelvaluessetonthisTrackerviasend(Map)withparamsand generatesahittobesent.Thehitmaynotbedispatchedimmediately.Notethatthehittype mustsetforthehittobeconsideredvalid.Moreinformationonthiscanbefoundat //goo.gl/HVIXHR. Parameters params mapofhitdatatovalueswhicharemergedwiththeexistingvalueswhichare alreadyset(usingset(String,String)).Valuesinthismapwilloverridethevaluessetearlier. Thevaluesinthismapwillnotbereusedforthesubsequenthits.Ifyouneedtosenda valueinmultiplehits,youcanusetheset(String,String)method. public void set (Stringkey,Stringvalue) Setsthemodelvalueforthegivenkey.Allsubsequenttrackorsendcallswillsendthis key-valuepairalongaswell.Toremoveaparticularfield,simplysetthevaluetonull. Parameters key Thekeyofthefieldthatneedstobeset.Itstartswith"&"followedbythe parametername.Thecompletelistoffieldscanbefoundat//goo.gl/M6dK2U. value AstringvaluetobesenttoGoogleservers.Anullvaluedenotesthatthevalue shouldnotbesentoverwire. public void setAnonymizeIp (booleananonymize) public void setAppId (StringappId) SetstheidoftheAppforanalyticsreports.Thisvalueispopulatedbydefaultusingthe informationprovidedbytheandroidpackagemanager.Thisvalueisusuallythepackagename usedbytheapp. Parameters appId Stringrepresentingthenameoftheapp. public void setAppInstallerId (StringappInstallerId) SetstheInstallerIdoftheAppforanalyticsreports.Thisvalueispopulatedbydefault usingtheinformationprovidedbytheandroidpackagemanagerandtheplaystore. Parameters appInstallerId Stringrepresentingthenameoftheapp. public void setAppName (StringappName) SetsthenameoftheAppforanalyticsreports.Thisvalueispopulatedbydefaultusingthe informationprovidedbytheandroidpackagemanager. Parameters appName Stringrepresentingthenameoftheapp. public void setAppVersion (StringappVersion) SetstheversionidentifieroftheAppforanalyticsreports.Thisvalueispopulatedby defaultusingtheinformationprovidedbytheandroidpackagemanager. Parameters appVersion Stringrepresentingtheversionoftheapp. public void setCampaignParamsOnNextHit (Uriuri) IncludesthecampaignparameterscontainedintheURIreferrerinthenexthit.Ifthereisno referrer,orthereferrerdoesnotcontaincampaignparameters,thismethoddoesnotadd anythingtothenexthit. Usethismethodtotrackin-appeventsdrivenbyadvertisingwithdeeplinkingcampaigns. Validcampaignparametersare: utm_id utm_campaign utm_content utm_medium utm_source utm_term dclid gclid Example://my.site.com/index.html?referrer=utm_source%3Dsource%26utm_campaign%3Dwow Parameters uri theuricontainingthereferrer public void setClientId (StringclientId) SetsaparticularclientIdforthedevice.ThisIdshouldbeavalidUUID(version4)string asdescribedin//goo.gl/0dlrGx.Ifnotspecified,theSDKautomaticallygeneratesonefor youandsetsit. Parameters clientId Avalidversion4UUIDstring. public void setEncoding (Stringencoding) public void setHostname (Stringhostname) public void setLanguage (Stringlanguage) Setsthelanguagebasedonuser'spreferredlocale.Thestringshouldbeoftheformatll-cc wherellisthelanguageandccisthecountry.Ifnovalueisprovided,thedefaultvaluefrom theandroidSDKisused. Parameters language stringthatdenotesaparticularlanguage/locale. public void setLocation (Stringlocation) public void setPage (Stringpage) public void setReferrer (Stringreferrer) public void setSampleRate (doublesampleRate) Setthesamplerateforallhitsgeneratedbytheapp.Thesamplingisdoneatapplevel.The defaultvalueis100.Toenablesampling,theminimumraterequiredis0.01%. Parameters sampleRate Avaluebetween0and100,specifyingthepercentageofdevicesthatshould sendhits. public void setScreenColors (StringscreenColors) public void setScreenName (StringscreenName) Setthescreennametobeassociatedwithallsubsequenthits. public void setScreenResolution (intwidth,intheight) Setsthescreenresolutionofthedevice.Ifnoresolutionisspecified,thedefaultresolution fromtheandroidSDKisused. Parameters width integerrepresentingthewidthinpixels. height integerrepresentingtheheightinpixels. public void setSessionTimeout (longsessionTimeout) Specifythetime(inseconds)anappcanstayinthebackgroundbeforeanewsessionis started.Settingthistoanegativenumberwillresultinanewsessionneverbeingstarted. Defaultis30seconds. Parameters sessionTimeout Sessiontimeouttimeinseconds. public void setTitle (Stringtitle) public void setUseSecure (booleanuseSecure) Setswhetherhitsshouldbesentsecurelyoverhttps.Thedefaultvalueistrue. public void setViewportSize (StringviewportSize) Exceptasotherwisenoted,thecontentofthispageislicensedundertheCreativeCommonsAttribution4.0License,andcodesamplesarelicensedundertheApache2.0License.Fordetails,seetheGoogleDevelopersSitePolicies.JavaisaregisteredtrademarkofOracleand/oritsaffiliates. Lastupdated2017-09-19UTC. [{ "type":"thumb-down", "id":"missingTheInformationINeed", "label":"MissingtheinformationIneed" },{ "type":"thumb-down", "id":"tooComplicatedTooManySteps", "label":"Toocomplicated/toomanysteps" },{ "type":"thumb-down", "id":"outOfDate", "label":"Outofdate" },{ "type":"thumb-down", "id":"samplesCodeIssue", "label":"Samples/codeissue" },{ "type":"thumb-down", "id":"otherDown", "label":"Other" }] [{ "type":"thumb-up", "id":"easyToUnderstand", "label":"Easytounderstand" },{ "type":"thumb-up", "id":"solvedMyProblem", "label":"Solvedmyproblem" },{ "type":"thumb-up", "id":"otherUp", "label":"Other" }] Connect AndroidDevelopersBlog GetNewsandTipsbyEmail MoreResources AndroidDevelopersWebsite GoogleDesign Tools AndroidStudio GooglePlayConsole Android Chrome Firebase GoogleCloudPlatform Allproducts Terms Privacy SignupfortheGoogleDevelopersnewsletter Subscribe Language English BahasaIndonesia Deutsch Español Français Português–Brasil Русский 中文–简体 日本語 한국어



請為這篇文章評分?