User Setting Page (2.3)

This page allows user to interact with the user profile

User's Own Profile Setting Page

Feature

Description

Edit profile

Will redirect to User profile edit page when clicked

Other User's profile setting page

There are 2 main state based on the user connection:

If user is already connect with the target user

In version 2.2, we do not have the User notification setting in the menu.

If user is not connected with the target user

Feature

Description

Report / unreport

User can report or unreport user in this user setting page

Unfollow

User can unfollow other user

You can try these codes:

//Use as activity
val intent = AmityUserSettingsActivity.newIntent(context, AmityUser)
startActivity(intent)

//Use as fragment
AmityUserSettingsFragment.newInstance(AmityUser).build(context)

Report User

user
.report()
.flag()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.doOnComplete { //success }
.doOnError { //error }
.susbscribe()

UnReportUser

user
.report()
.unflag()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.doOnComplete { //success }
.doOnError { //error }
.susbscribe()

UnFollow User

AmityCoreClient
.newUserRepository()
.relationship()
.me()
.unfollow(userId)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.doOnComplete { //success }
.doOnError { //error }
.susbscribe()

Last updated