setUserId static method
Sets the internal user ID for the current user to a string value of your choice.
MAX passes this internal user ID back to you via the {USER_ID} macro in its MAX S2S Rewarded Callback requests.
Implementation
static void setUserId(String userId) {
channel.invokeMethod('setUserId', {
'value': userId,
});
}