ovr_User_LaunchBlockFlow(ovrID userID)
ovrID userID
: The ID of the user that the viewer is going to launch the block flow request.ovr_LaunchBlockFlowResult_GetDidBlock
and ovr_LaunchBlockFlowResult_GetDidCancel
to get the results of the viewer’s actions from the modal.ovr_LaunchBlockFlowResult_GetDidBlock
checks if the viewer selected Block from the modal.ovr_LaunchBlockFlowResult_GetDidCancel
checks if the viewer canceled or selected Back from the modal.Situation | Description | Result Feedback (ovr_LaunchBlockFlowResult_) |
---|---|---|
Successful block | The user will view a dialog allowing them to Block or Cancel. The user selects Block and the block is executed successfully. | GetDidBlock : true, GetDidCancel : 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. | GetDidBlock : false, GetDidCancel : 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. | GetDidBlock : false, GetDidCancel : 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. | GetDidBlock : false, GetDidCancel : 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. | GetDidBlock : false, GetDidCancel : true |
ovr_User_LaunchUnblockFlow(ovrID userID)
ovrID userID
: The ID of the user that the viewer is going to launch the unblock flow request.ovr_LaunchUnblockFlowResult_GetDidBlock
and ovr_LaunchUnblockFlowResult_GetDidCancel
to get the results of the viewer’s actions from the modal.ovr_LaunchBlockFlowResult_GetDidUnblock
checks if the viewer selected Unblock from the modal.ovr_LaunchBlockFlowResult_GetDidCancel
checks if the viewer canceled or selected Back from the modal.ovr_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 ovr_User_GetNextBlockedUserArrayPage()
and paginate the data.