Location profile (Hydra only)

SDK supports custom profiles(configuration) for vpn session To enable this feature pass additional location to withLocationProfile method of SessionConfig.Builder

builder.withLocationProfile(profile)

LocationProfile can be fetched with Backend API

sdk.getBackend().locations(ConnectionType.HYDRA_TCP, new Callback<AvailableLocations>() {
@Override    
        public void success(@NonNull AvailableLocations availableLocations) {
           //availableLocations.getProfiles()
        }    
        @Override    
        public void failure(@NonNull VpnException e) { 
        }
 }); 

To disable location profile pass "" to withLocationProfile

Last updated