Ejemplo n.º 1
0
        public void OnShareTextWithImage()
        {
            var screenPosition = new Vector2(Screen.width / 2, Screen.height / 2);

            IGShare.Share(
                activityType =>
            {
                if (string.IsNullOrEmpty(activityType))
                {
                    Debug.Log("Posting was canceled or unknown result");
                }
                else
                {
                    Debug.Log("DONE sharing, activity: " + activityType);
                }
            },
                error => Debug.LogError("Error happened when sharing activity: " + error),
                Message, Image, screenPosition);
        }
Ejemplo n.º 2
0
        public void OnShareOnlyText()
        {
            var screenPosition = Vector2.zero;             // On iPads ONLY you can choose screen position of popover

            IGShare.Share(
                activityType =>
            {
                if (string.IsNullOrEmpty(activityType))
                {
                    Debug.Log("Posting was canceled or unknown result");
                }
                else
                {
                    Debug.Log("DONE sharing, activity: " + activityType);
                }
            },
                error => Debug.LogError("Error happened when sharing activity: " + error),
                Message, null, screenPosition);
        }