setUserId static method

void setUserId(
  1. String userId
)

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.

Setting an Internal User ID

Implementation

static void setUserId(String userId) {
  channel.invokeMethod('setUserId', {
    'value': userId,
  });
}