Its actual implementation is,
public void getSize(Point outSize) {
synchronized (this) {
updateDisplayInfoLocked();
mDisplayInfo.getAppMetrics(mTempMetrics, mDisplayAdjustments);
outSize.x = mTempMetrics.widthPixels;
outSize.y = mTempMetrics.heightPixels;
}
}
and also the documentation didn't mention this particular design.
Could this be because of synchronization? How effective would this be if it is returned instead? Just curious.
Also, why Point
is used instead of Dimensions
as Dimensions
seems to be meaningful in this context.
My apologies and please ignore if this question is too dumb.