Beispiel #1
0
 public void ShareLastScore()
 {
     if (NPBinding.Sharing.IsMessagingServiceAvailable())
     {
         MessageShareComposer _composer = new MessageShareComposer();
         _composer.Body = "Hey! Try to beat my highscore: " + Manager.highScore + " in BLOX! Available now, on both IOS and Android!";
         NPBinding.Sharing.ShowView(_composer);
     }
 }
Beispiel #2
0
        public override void OnEnter()
        {
#if USES_SHARING
            MessageShareComposer _composer = new MessageShareComposer();
            _composer.Body         = body.Value;
            _composer.ToRecipients = recipients.IsNone ? null : recipients.Value.Split(';');

            // Show message composer
            NPBinding.Sharing.ShowView(_composer, FinishedSharing);
#endif
        }
Beispiel #3
0
        private void SendTextMessage()
        {
            // Create composer
            MessageShareComposer _composer = new MessageShareComposer();

            _composer.Body         = m_smsBody;
            _composer.ToRecipients = m_smsRecipients;

            // Show message composer
            NPBinding.Sharing.ShowView(_composer, FinishedSharing);
        }