Example #1
0
        private unsafe void ShowAlert(string title, string body, string button)
        {
            fixed(byte *titleBytes = ResourceLoader.GetBytes(title), bodyBytes = ResourceLoader.GetBytes(body), buttonBytes = ResourceLoader.GetBytes(button))
            {
                DllImports.ShowAlert(new DllImports.AlertData()
                {
                    title     = titleBytes,
                    titleLen  = title.Length,
                    body      = bodyBytes,
                    bodyLen   = body.Length,
                    button    = buttonBytes,
                    buttonLen = button.Length
                });
            }

            _isAlertShown = true;
        }