Skip to main content
Version: 4.6.2-saas

Entry Key Invalidation Function

warning

The following content applies to Android versions 4.4.2 and higher.

Overview

This document explains the function provided by the NetFUNNEL Android Agent for deleting entry keys stored in the application.

Entry Key Invalidation

When a queue is triggered, the NetFUNNEL Android Agent saves the entry key to its own xml file in SharedPreferences (app data). If the entry pass is used, the key can be reused to enter again without waiting. The entry key invalidation function is used when you want to delete the entry key at a specific point to induce the queue process again.

Netfunnel.nfClear(
activity,
"{{PROJECT_KEY}}",
"{{SEGMENT_KEY}}"
)
ParameterTypeDescription
activityActivityThe current Activity screen
projectKeyString?Project key to delete
segmentKeyString?Segment key to delete
info

The scope of entry key deletion changes depending on the parameters entered. Depending on the combination of projectKey and segmentKey, you can delete entry keys for a specific segment, for the entire project, or for all data.

CaseprojectKeysegmentKeyDeletion Scope
1OODelete entry key for a specific segment within a project
2OXDelete entry keys for all segments in the specified project
3XXDelete all entry keys for all projects and segments
// Example 1: Remove the entry key for the "segKey_1234" segment in project "service_1"
Netfunnel.nfClear(activity, "service_1", "segKey_1234")

// Example 2: Remove all entry keys for the project "service_1"
Netfunnel.nfClear(activity, "service_1", null)

// Example 3: Remove all entry keys for all projects and segments
Netfunnel.nfClear(activity, null, null)