Example #1
0
    public void CallProfileCamera(OnImageCompleted OnCompleted)
    {
        Debug.Log("CallProfileCamera");

        _onProfileCameraCompleted = OnCompleted;

#if UNITY_ANDROID && !UNITY_EDITOR
        using (javaClass = new AndroidJavaClass("com.feed.plugin.BridgeCls"))
        {
            if (javaClass != null)
            {
                javaClassInstance = javaClass.CallStatic <AndroidJavaObject>("instance");
                javaClassInstance.Call("startProfilePhotoActivity", activityContext);
            }
        }
#elif UNITY_IOS && !UNITY_EDITOR
        iOSPanel.gameObject.SetActive(true);
        staticPanel = iOSPanel;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            IOSProfileCamera(closeiOSHandler);
        }
#endif
    }
Example #2
0
    public void CallEditActivity(string filePath, OnImageCompleted OnCompleted)
    {
        Debug.LogFormat("CallEditActivity. path : {0}", filePath);

        _onFilterImageCompleted = OnCompleted;

#if UNITY_ANDROID && !UNITY_EDITOR
        using (javaClass = new AndroidJavaClass("com.feed.plugin.BridgeCls"))
        {
            if (javaClass != null)
            {
                javaClassInstance = javaClass.CallStatic <AndroidJavaObject>("instance");
                javaClassInstance.Call("startEditActivity", activityContext, filePath);                 //"/storage/emulated/0/temp_photo.jpg");
            }
        }
#elif UNITY_IOS && !UNITY_EDITOR
        iOSPanel.gameObject.SetActive(true);
        staticPanel = iOSPanel;

        if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
            IOSSendPhoto(closeiOSHandler, filePath); //"sample.jpg");
        }
#endif
    }
Example #3
0
    void SetFacePhotoPath(string strPath)
    {
        Debug.LogFormat("FeedModule.SetFacePhotoPath : {0}", strPath);

        if (_onFacePhotoCompleted != null)
        {
            _onFacePhotoCompleted(strPath);
            _onFacePhotoCompleted = null;
        }
    }
Example #4
0
    void SetFilterImagePath(string strPath)
    {
        Debug.LogFormat("FeedModule.SetFilterImagePath : {0}", strPath);

        if (_onFilterImageCompleted != null)
        {
            _onFilterImageCompleted(strPath);
            _onFilterImageCompleted = null;
        }
    }
Example #5
0
    void SetProfilePath(string strPath)
    {
        Debug.LogFormat("FeedModule.SetProfilePath : {0}", strPath);

        if (_onProfileGalleryCompleted != null)
        {
            _onProfileGalleryCompleted(strPath);
            _onProfileGalleryCompleted = null;
        }

        if (_onProfileCameraCompleted != null)
        {
            _onProfileCameraCompleted(strPath);
            _onProfileCameraCompleted = null;
        }
    }