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

CreateToastImageAndText() private method

private CreateToastImageAndText ( string image, string text ) : int
image string
text string
return int
        private static extern int CreateToastImageAndText(string image, string text);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

コード例 #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 image, string text)
        {
            int toastImageAndText = Toast.CreateToastImageAndText(image, text);

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