android 中的 getDecorView() 和 peekDecorView() 有什么区别

What is difference between getDecorView() and peekDecorView() in android

getDecorView() 和 peekDecorView() 有什么区别, 他们 return

getDecoreView :

Retrieve the top-level window decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager.

Return : the top-level window decor view. 

peekDecorView() :

Retrieve the current decor view, but only if it has already been created; otherwise returns null.

Return :  the top-level window decor or null.