Skip to main content

Terms & Conditions

Terms & Conditions View

The Terms & Conditions View is automatically presented when the user has not yet accepted the latest Terms and Conditions.

This screen ensures compliance before allowing access to the medical features.


Presentation Behavior

The Terms & Conditions View:

  • Is displayed only if the user has not accepted the medical Terms & Conditions.
  • Is presented automatically when required.
  • Appears above all other views.
  • Uses a full-screen modal presentation style.
  • Blocks interaction with the underlying interface until an action is taken.

Once the Terms & Conditions are accepted, the view will not be presented again unless a new acceptance is required.


Listeners

User interaction with the Terms & Conditions View is communicated through OnDeclinedTermsConditionsListener.

MeetingDoctorsClient.instance?.setOnDeclinedTermsConditionsListener(object : MeetingDoctorsClient.OnDeclinedTermsConditionsListener {

override fun userHasDeclined() {

}

override fun userHasAccepted() {

}

})

Accepted

userHasAccepted
  • Triggered when the user accepts the Terms & Conditions.
  • Indicates that compliance has been completed successfully.

Declined

userHasDeclined

Triggered when the user presses the exit/close button without accepting the Terms & Conditions.


Dismissal Behavior

In both cases — Accepted or Declined — the Terms & Conditions View is automatically dismissed.

After dismissal:

  • If accepted, the application flow continues normally.

  • If declined, further action may be required depending on the host application logic.


Customization

The content of the Terms & Conditions View can be customized overriding the SDK resources system.

Customizable Properties

PropertyTypeDescription
md_bannerDrawableImage displayed at the top of the screen.
doctors_imageDrawableMain illustrative image displayed in the content area.
meetingdoctors_terms_explanation_textStringMain descriptive text displayed in the Terms & Conditions screen.

Example Customization

<string name="meetingdoctors_terms_explanation_text">Custom text</string>