initContextualDataCollection method

Future<Object?> initContextualDataCollection(
  1. ContextualCredential credentials
)

Method that allow's you to send the contextual information from the current device where the app is running.

ContextualCredential object as parameter

ContextualCredential(
     customerId: String,
     apiPassword: String,
     apiUsername: String,
     authApiUrl: String,
     sendDataApiUrl: String
     appUsageDays: int);

Implementation

Future<Object?> initContextualDataCollection(
    ContextualCredential credentials) {
  return ContextualProfilerPlatform.instance
      .initContextualDataCollection(credentials);
}