Obter orientação atual do dispositivo (extensão de aplicativo)

Como obter a orientação atual do dispositivo em uma extensão de aplicativo, tentei abaixo dois métodos, mas sem sucesso.

Sempre retorna UIDeviceOrientationUnknown

[[UIDevice currentDevice] orientation]

Ele mostra uma mensagem vermelha de que 'sharedApplication' não está disponível no iOS (extensão de aplicativo)

[[UIApplication sharedApplication] statusBarOrientation];

Eu também adiciono um observador, mas ele não está sendo chamado.

[[NSNotificationCenter defaultCenter] addObserver:self.view selector:@selector(notification_OrientationWillChange:) name:UIApplicationWillChangeStatusBarOrientationNotification object:nil];



- (void)notification_OrientationWillChange:(NSNotification*)n
{
   UIInterfaceOrientation orientation = (UIInterfaceOrientation)[[n.userInfo objectForKey:UIApplicationStatusBarOrientationUserInfoKey] intValue];

    if (orientation == UIInterfaceOrientationLandscapeLeft)
       [self.textDocumentProxy insertText:@"Left"];
    if (orientation == UIInterfaceOrientationLandscapeRight)
       [self.textDocumentProxy insertText:@"Right"];
}

Então agora como alguém pode obter a orientação atual do dispositivo.

questionAnswers(10)

yourAnswerToTheQuestion