Beispiel #1
0
    // **************************
    // Private/Helper functions
    // **************************

    private IEnumerator OpenAndroidGalleryInternal()
    {
        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: OpenAndroidGallery() called");
        }

        m_currGalleryImageIndex = 0;
        m_galleryImageFilePaths.Clear();

        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: About to call GetImagesPath function...");
        }
        m_imagesTopLevelDirectory = m_javaPluginClass.CallStatic <string>("GetAndroidImagesPath"); //string path = "/storage/emulated/0/DCIM/Gear 360/";

        m_imageSphereController.SetTopLevelDirectory(m_imagesTopLevelDirectory);
        if (Debug.isDebugBuild)
        {
            Debug.Log("------- VREEL: Storing all FilePaths from directory: " + m_imagesTopLevelDirectory);
        }

        yield return(StoreAllImageGalleryFilePaths(m_imagesTopLevelDirectory));

        m_currGalleryImageIndex = 0;
        int numImagesToLoad = m_imageSphereController.GetNumSpheres();

        m_imageSphereController.SetAllImageSpheresToLoading();

        yield return(LoadImageThumbnails(m_currGalleryImageIndex, numImagesToLoad));
    }
Beispiel #2
0
    // **************************
    // Private/Helper functions
    // **************************

    private void OpenPosts()
    {
        m_imageSphereController.SetAllImageSpheresToLoading();
        m_coroutineQueue.EnqueueAction(StoreFirstPostsAndSetSpheres());
    }