How to create shipping method for logged in users only

With this feature, we can create some special shipping methods which only available for logged-in users only.

For eg., If there is a shipping method name like "One day delivery" want to check based on the user address then if the user logged in and if the address is within an area of the store then enable this shipping method.

Screenshot - 1: (Admin - Show only for logged in users)

Screenshot - 2: (Shipping method cart page view)

Using this feature we can set multiple shipping methods for the logged in users.