NCIntentController.h 650 B

123456789101112131415161718192021
  1. /**
  2. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: GPL-3.0-or-later
  4. */
  5. #import <Foundation/Foundation.h>
  6. #import <Intents/INSendMessageIntent.h>
  7. #import <Intents/INSendMessageIntent+UserNotifications.h>
  8. #import "NCRoom.h"
  9. typedef void (^GetInteractionForRoomCompletionBlock)(INSendMessageIntent *sendMessageIntent);
  10. @interface NCIntentController : NSObject
  11. + (instancetype)sharedInstance;
  12. - (void)donateSendMessageIntentForRoom:(NCRoom *)room;
  13. - (void)getInteractionForRoom:(NCRoom *)room withTitle:(NSString *)title withCompletionBlock:(GetInteractionForRoomCompletionBlock)block;
  14. @end