User_LaunchBlockFlow(FOvrId UserID)FOvrId UserID : The ID of the user that the viewer is going to launch the block flow request.
FOvrLaunchBlockFlowResult to get the results of the viewer’s actions from the modal.FOvrLaunchBlockFlowResult::DidBlock checks if the viewer selected Block from the modal.FOvrLaunchBlockFlowResult::DidCancel checks if the viewer canceled or selected Back from the modal.
| Situation | Description | Result Feedback (FOvrLaunchBlockFlowResult) |
|---|---|---|
Successful block | The user will view a dialog allowing them to Block or Cancel. The user selects Block and the block is executed successfully. | DidBlock: true, DidCancel: false |
User cancel | The user will view a dialog allowing them to Block or Cancel. The user selects Cancel and returns the viewer to the app. | DidBlock: false, DidCancel: true |
Viewer tries to block someone they blocked previously | The viewer receives a message informing them of the situation and asking whether they would like to unblock the target user. Selecting Back returns the viewer to their app. | DidBlock: false, DidCancel : true |
Viewer tries to block themselves | The viewer receives a message indicating that this is not supported. Selecting Back returns the viewer to their app. | DidBlock: false, DidCancel : true |
The block cannot be sent for some other reason. | The user receives the message “Unable to block. Please check your connection and try again.” Selecting Back returns the viewer to the app. | DidBlock: false, DidCancel: true |
User_LaunchUnblockFlow(FOvrId UserID)FOvrId UserID : The ID of the user that the viewer is going to launch the unblock flow request.FOvrLaunchUnblockFlowResult to get the results of the viewer’s actions from the modal.FOvrLaunchUnblockFlowResult::DidUnblock checks if the viewer selected Unblock from the modal.FOvrLaunchUnblockFlowResult::DidCance checks if the viewer canceled or selected Back from the modal.User_GetBlockedUsers() method. Doing so retrieves an array of the current user’s blocked user IDs who are also entitled to your app.
If there are a large number of values being returned, you may need to call BlockedUserPages_GetNextUrl() and paginate the data.