setOnReferralDataReceivedListener static method

void setOnReferralDataReceivedListener(
  1. dynamic listener(
    1. ReferralData
    )
)

Set listener to receive referral data if there is any.

listener To be called with a new referral data.

Implementation

static void setOnReferralDataReceivedListener(
    Function(ReferralData) listener) {
  NativeBridge.registerListener('Invites.setOnReferralDataReceivedListener',
      (result) {
    listener(ReferralData.fromJSON(jsonDecode(result)));
  });
}