2323
2424## Requirements
2525
26- ` PathshareSDK ` for Android supports Android 5.x, 6.x, 7.x and 8 .x.
26+ ` PathshareSDK ` for Android supports Android 5.x, 6.x, 7.x, 8.x and 9 .x.
2727
2828## Installation
2929
@@ -95,7 +95,7 @@ Before creating a session, you need to save a user:
9595
9696###### Java
9797``` java
98- Pathshare . client()
. saveUser(
" Candice" ,
" [email protected] " ,
" +12345678901" ,
UserType . DRIVER,
new ResponseListener () {
98+ Pathshare . client()
. saveUser(
" Candice" ,
" [email protected] " ,
" +12345678901" ,
UserType . DRIVER,
getResources() . getDrawable( R . drawable . face, null ), new ResponseListener () {
9999 @Override
100100 public void onSuccess () {
101101 // ...
@@ -110,7 +110,7 @@ Pathshare.client().saveUser("Candice", "
[email protected] ", "+12345678901", UserType.
110110
111111###### Kotlin
112112``` kotlin
113- Pathshare .client().saveUser(
" SDK User Android" ,
" [email protected] " ,
" +12345678901" ,
UserType .
DRIVER ,
object : ResponseListener {
113+ Pathshare .client().saveUser(
" SDK User Android" ,
" [email protected] " ,
" +12345678901" ,
UserType .
DRIVER ,
resources.getDrawable( R .drawable.face, null ), object : ResponseListener {
114114 override fun onSuccess () {
115115 // ...
116116 }
@@ -122,6 +122,8 @@ Pathshare.client().saveUser("SDK User Android", "
[email protected] ", "+12345678901",
122122```
123123The email address can be ` null ` .
124124
125+ Use the same method Pathshare.client().saveUser() to create or update the user.
126+
125127There are different types of users for specific industries:
126128
127129User Types | Description
0 commit comments