Entry Key Invalidation Function
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}}"
)
| Parameter | Type | Description |
|---|---|---|
activity | Activity | The current Activity screen |
projectKey | String? | Project key to delete |
segmentKey | String? | Segment key to delete |
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.
| Case | projectKey | segmentKey | Deletion Scope |
|---|---|---|---|
| 1 | O | O | Delete entry key for a specific segment within a project |
| 2 | O | X | Delete entry keys for all segments in the specified project |
| 3 | X | X | Delete 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)