Vuforia DigitalEyewearBehaviour setting changes on runtime not working
<p>I am using vuforia library in my unity project where I need to change the DigitalEyewearBehaviour properties on a users button click action. So far the orientation of the screen changes and when checked through the debug log the eyewear type and the mode both are seem to be set perfectly. But the device only changes the screen orientation to landscape and blacks out the camera.</p>

<pre><code>public void ChangeToHeadGearMode(){

    //static setting changes
    Screen.orientation = ScreenOrientation.Landscape;



    //Getting Player Settings
    string ViewerType = PlayerPrefs.GetString("Viewer Type","Generic Cardboard (Vuforia)");
    string SterioFrameWork = PlayerPrefs.GetString ("Sterio Framework", "0");
    mDebug.Log ("Getting VT " + ViewerType);
    mDebug.Log ("Getting SF " + SterioFrameWork);

    //setting set
    mDebug.Log (mHeadGearParameters.GetEyewearType().ToString());
    mHeadGearParameters.SetEyewearType(Vuforia.DigitalEyewearAbstractBehaviour.EyewearType.VideoSeeThrough);
    mDebug.Log (mHeadGearParameters.GetEyewearType().ToString());

    if(SterioFrameWork=="0")
    {
        mHeadGearParameters.SetStereoCameraConfiguration(Vuforia.DigitalEyewearAbstractBehaviour.StereoFramework.Vuforia);
        mDebug.Log ("ST=0");
    }
    else if(SterioFrameWork=="1")
    {
        mHeadGearParameters.SetStereoCameraConfiguration(Vuforia.DigitalEyewearAbstractBehaviour.StereoFramework.Cardboard);
        mDebug.Log ("ST=1");
    }
    else if(SterioFrameWork=="2")
    {
        mHeadGearParameters.SetStereoCameraConfiguration(Vuforia.DigitalEyewearAbstractBehaviour.StereoFramework.GearVR);
        mDebug.Log ("ST=2");
    }

    mHeadGearParameters.SetViewerActive (true,true);
</code></pre>

<p>}</p>

<p>The vuforia developer portal says a method as <code>SetViewerActive</code> When I apply <a href="https://developer.vuforia.com/library/sites/default/api/unity/classVuforia_1_1DigitalEyewearAbstractBehaviour.html#aa207b14473e5fcabe5c9b48e78909988" rel="nofollow">that method</a> only the camera blacks out. If I does not use that the camera does not black out but the view does not change to cardboard view. I have tried all the possible options in <code>SetViewerActive</code> method but does not work. I went through the <a href="https://developer.vuforia.com/library/sites/default/api/unity/classVuforia_1_1DigitalEyewearAbstractBehaviour.html" rel="nofollow">vuforia developer portal</a> a number of times but did not find the error.
What am I doing wrong or where am I missing an important point?</p>