Skip to content

DIA-5947 implement dismissMessage#867

Merged
andresilveirah merged 3 commits into
developfrom
DIA-5947_implement_dismissMessage
Jul 20, 2025
Merged

DIA-5947 implement dismissMessage#867
andresilveirah merged 3 commits into
developfrom
DIA-5947_implement_dismissMessage

Conversation

@andresilveirah
Copy link
Copy Markdown
Member

No description provided.

fun dismissMessage()

@Deprecated(message = "This method is deprecated and has no effect.")
fun dispose()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andresilveirah why don't we remove it altogether?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's less intrusive if we simply trigger a dismiss action. The SDK will call onSPUIFinished and the app should already be prepared to remove the view on that callback. But if we get feedback it's better to remove the view all together, we can do that too.

action = SPConsentAction(
actionType = MSG_CANCEL,
campaignType = campaignType,
messageId = ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andresilveirah isn't the "" a typo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a typo. We don't have that information easily available. Since the dismiss doesn't make any network request, it's okay to set it as empty string.

@andresilveirah andresilveirah merged commit 5d838c5 into develop Jul 20, 2025
3 checks passed
@andresilveirah andresilveirah deleted the DIA-5947_implement_dismissMessage branch July 20, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants