Code-based Integration - Basic Control
Control entry rate by calling NetFUNNEL functions in React Native application code.
Basic control is one of two control types available in code-based integration. To compare with section control and choose the most suitable approach for your use case, refer to the Integration Methods Overview.
For detailed information about how basic control works, optimal use cases, use cases, etc., refer to the "Code-based Integration - Basic Control" section in the Common Guide document.
Prerequisites
- Installation and Initialization completed
- NetFUNNEL console access
- React Native development environment
Create Segment
- Go to NetFUNNEL Console →
Projects→Segment - Click the
+button to create a new segment - Select Basic Control and click
Next - Enter segment name and complete setup
For detailed information about creating segments, refer to the Basic Control Segment document.
Start Function
Function Name: nfStart
Description: Call the function at the point where you want to apply waiting to issue a key and display the waiting room.
Parameters:
| Parameter | Type | Description |
|---|---|---|
projectKey | String | Basic control project key from console |
segmentKey | String | Basic control segment key from console |
callback | Function | Custom callback function for waiting room event handling |
Example:
import Netfunnel from 'netfunnel-rn-agent';
Netfunnel.nfStart("{{PROJECT_KEY}}", "{{SEGMENT_KEY}}", function(response) {
// TODO: Implement callback function according to response.
nfCallback(response);
});
For how to implement the nfCallback function, refer to the Callback Functions section.
Stop Function
Function Name: nfStop
Description: Used to return the key after entry is completed.
If the stop function is not executed, it is automatically returned according to the segment's timeout setting.
Parameters:
| Parameter | Type | Description |
|---|---|---|
projectKey | String | Basic control project key from console |
segmentKey | String | Basic control segment key from console |
Example:
Netfunnel.nfStop("{{PROJECT_KEY}}", "{{SEGMENT_KEY}}");
Related Documentation
- Common Guide: Detailed explanation of basic control
- Section Control: For multi-step processes
- API Reference: Complete function specifications
- Troubleshooting: Common issues and solutions