C# developer uses ? keyword for null check.
// Example
Tizen.Log.Error("NUI", " CurrentFocusView : " + currentFocusView?.Name);
To support this, CurrentFocusView() should return null when
there is no focused view.
Change-Id: I0806fb24fa7d9dd0626767e45cc590430f54332f
Signed-off-by: minho.sun <minho.sun@samsung.com>
{
View ret = View.DownCast(new Actor(NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr), true));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (ret.HasBody() == false)
+ {
+ return null;
+ }
return ret;
}
{
View ret = View.DownCast(new Actor(NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, Actor.getCPtr(view)), true));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (ret.HasBody() == false)
+ {
+ return null;
+ }
return ret;
}
{
View ret = View.DownCast(new Actor(NDalicManualPINVOKE.FocusManager_GetFocusIndicatorActor(swigCPtr), true));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (ret.HasBody() == false)
+ {
+ return null;
+ }
return ret;
}