When a user joins a channel, Video SDK automatically connects them to the closest geographical region of Agora SD-RTN™. However, to meet the laws and regulations of your region, you may want to filter in or filter out connections to a specific geographical region. Agora geofencing enables you to control and customize data routing in your app by specifying the Agora SD-RTN™ region users connect to.
For context on this sample, and a full explanation of the essential code snippets used in this project, read Geofencing.
The implemented features can be found in GeofencingView.swift.
To see how to run this project, read the instructions in the main README or SDK quickstart.