Class Veery
setApiKeySecret(String apiKeySecret)
Set the Secret (password) attached to your API Key.
This is necessary to enable the usage of backend based functions (Predictions, POI, Trips, Matchings, ...).
This should be called any time after the very first serviceConnect() is called (Usually on the onCreate callback of the main activity), before any other calls to any other function of Veery.
This function scopes the agent, so it is not necessary to call it from all Activities but only from the Main Activity.
Parameters
Param name | Type | Usage |
---|---|---|
apiKeySecret | String | The API KEY Secret received with your API KEY |
Returns
void
Usage / Example
public class MapsActivity extends AppCompatActivity { private final Veery veery = new Veery(this); protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ...Some initialization here... // TODO : Connect to the service and start it if it was off veery.serviceConnect(); // TODO : declare your API KEY Secret veery.setApiKeySecret("SuPeRScrET12345789GhJ"); // TODO : initialize firebase FirebaseApp.initializeApp(this); // TODO Let veery know the Firebase token veery.setFirebaseToken(FirebaseInstanceId.getInstance().getToken()); // ...Some initialization here... } // ... }
User interaction
none