public override void UnBind()
    {
        this.View.mCloseButton.TappedOn -= OnTappedOnCloseButton;
        this.View.UnLoadView();
        VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour));

        if (vuforiaBehaviour)
        {
            vuforiaBehaviour.UnregisterOnPauseCallback(OnPause);
        }
    }
Exemplo n.º 2
0
    public override void UnBind()
    {
        this.View.mCloseButton.TappedOn -= OnTappedOnCloseButton;
        this.View.mAboutLabel.TappedOn  -= OnTappedOnAboutButton;

        // unregister Vuforia started callback
        VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour));

        if (vuforiaBehaviour)
        {
            vuforiaBehaviour.UnregisterVuforiaStartedCallback(EnableContinuousAutoFocus);
            vuforiaBehaviour.UnregisterOnPauseCallback(OnPause);
        }

        this.View.UnLoadView();
        mView = null;
    }
Exemplo n.º 3
0
    public override  void UnBind()
    { 
        this.View.mExtendedTracking.TappedOn    -= OnTappedToTurnOnTraking;
        this.View.mCameraFlashSettings.TappedOn -= OnTappedToTurnOnFlash;
        this.View.mAutoFocusSetting.TappedOn    -= OnTappedToTurnOnAutoFocus;
        this.View.mCameraFacing.TappedOnOption  -= OnTappedToTurnCameraFacing;
        this.View.mDataSet.TappedOnOption       -= OnTappedOnDataSet;
        this.View.mCloseButton.TappedOn         -= OnTappedOnCloseButton;
        this.View.mAboutLabel.TappedOn          -= OnTappedOnAboutButton;
        sExtendedTrackingIsEnabled = false;

        // unregister Vuforia started callback
        VuforiaAbstractBehaviour VuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour));
        if (VuforiaBehaviour)
        {
            VuforiaBehaviour.UnregisterVuforiaStartedCallback(EnableContinuousAutoFocus);
            VuforiaBehaviour.UnregisterOnPauseCallback(OnPause);
        }

        this.View.UnLoadView();
        mView = null;
    }
    public override void UnBind()
    {
        this.View.mCloseButton.TappedOn -= OnTappedOnCloseButton;
        this.View.mButtonTwo.TappedOn   -= OnTappedOnButtonTwo;
        this.View.mButtonFour.TappedOn  -= OnTappedOnButtonFour;
        this.View.mButtonThree.TappedOn -= OnTappedOnButtonThree;
        this.View.mButtonOne.TappedOn   -= OnTappedOnButtonOne;
        this.View.mAboutButton.TappedOn -= OnTappedOnAboutButton;

        // unregister Vuforia started callback
        VuforiaAbstractBehaviour vuforiaBehaviour = (VuforiaAbstractBehaviour)FindObjectOfType(typeof(VuforiaAbstractBehaviour));

        if (vuforiaBehaviour)
        {
            vuforiaBehaviour.UnregisterVuforiaStartedCallback(EnableContinuousAutoFocus);
            vuforiaBehaviour.UnregisterOnPauseCallback(OnPause);
        }

        mVBPositionDict.Clear();
        mVBScaleDict.Clear();
        this.View.UnLoadView();
        mView = null;
    }