Get started
Last updated
Was this helpful?
Last updated
Was this helpful?
Before starting DriveKit Group module integration, make sure that you have , especially if you have .
If you use DriveKit Group without having initialized DriveKit, an exception will be generated and the SDK will not work in your application.
To add Group module to your app, add the following line to your dependencies in your application build.gradle file:
If you have , an initialization phase is required to use the functions offered by the Group component. To initialize Group component in your app, you must call the initialization method in onCreate
method of your application class.
To obtain the list of groups that belong to your organisation, call the following method:
GroupsSynchronizationStatus
can have 3 values:
SUCCESS
: synchronization has been successfully performed.
CACHE_DATA_ONLY
: groups previously synchronized are returned.
DKGroupType
can have 3 values:
ALL
: Get all groups related to user team.
JOINED
: Get already joined groups.
NOT_JOINED
: Get not joined groups related to user team.
To assign the driver to a group, call the following method:
DKJoinGroupStatus
can have 4 values:
SUCCESS
: Group joined successfully.
ALREADY_JOINED
: Group already joined.
GROUP_NOT_FOUND
: Wrong groupId.
FAILED_TO_JOIN
: Failed to join the group.
To remove the driver from a group to which it has been assigned, call the following method:
DKLeaveGroupStatus
can have 4 values:
SUCCESS
: Left group successfully.
NOT_IN_GROUP
: Group already left.
GROUP_NOT_FOUND
: Wrong groupId.
FAILED_TO_LEAVE
: Failed to leave the group.