UnityEngine.WSA.Toast.CreateToastXml C# (CSharp) Method

CreateToastXml() private method

private CreateToastXml ( string xml ) : int
xml string
return int
        private static extern int CreateToastXml(string xml);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

Esempio n. 1
0
        /// <summary>
        ///   <para>Create toast notification.</para>
        /// </summary>
        /// <param name="xml">XML document with tile data.</param>
        /// <param name="image">Uri to image to show on a toast, can be empty, in that case text-only notification will be shown.</param>
        /// <param name="text">A text to display on a toast notification.</param>
        /// <returns>
        ///   <para>A toast object for further work with created notification or null, if creation of toast failed.</para>
        /// </returns>
        public static Toast Create(string xml)
        {
            int toastXml = Toast.CreateToastXml(xml);

            if (toastXml < 0)
            {
                return((Toast)null);
            }
            return(new Toast(toastXml));
        }
All Usage Examples Of UnityEngine.WSA.Toast::CreateToastXml