xamarin.essentials.SmsMessage return value

Morten Bang Olin 1 Reputation point
2021-03-13T12:47:42.287+00:00

Hi all!
I am writing on an APP, that makes use of SmsMessage.composeasync.

My problem is that I need to register if the user has cancelled out, og pressed send in SMS window.

Is there any way to do this?

Regards,
Morten

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JessieZhang-MSFT 7,701 Reputation points Microsoft Vendor
    2021-03-30T07:49:00.597+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    What I mean is, that I need to know, if the user has pressed send, or cancelled out of the SMS message, I present. My APP needs to know this, as I have toggle buttons, that need to be switched off or on, dependning on the users having actually send the SMS, that is presented through SmsMessage.

    For this, you can easily find out by whether or not you press the Send button.

    If I understand correctly, when you click the send button, you can enable the toggle button, otherwise, disable it.

    And there is an article about this, you can check it here: Send SMS Using Xamarin.Essentials .

    Hope it can help you.

    Best Regards,

    Jessie Zhang

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.