Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

InviteSearch.h 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright @ 2018-present Atlassian Pty Ltd
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. @class InviteSearchController;
  17. @protocol InviteSearchControllerDelegate
  18. /**
  19. * Called when an InviteSearchController has results for a query that was previously provided.
  20. */
  21. - (void)inviteSearchController:(InviteSearchController * _Nonnull)controller
  22. didReceiveResults:(NSArray<NSDictionary*> * _Nonnull)results
  23. forQuery:(NSString * _Nonnull)query;
  24. /**
  25. * Called when all invitations were sent successfully.
  26. */
  27. - (void)inviteDidSucceedForSearchController:(InviteSearchController * _Nonnull)searchController;
  28. /**
  29. * Called when one or more invitations fails to send successfully.
  30. */
  31. - (void)inviteDidFailForItems:(NSArray<NSDictionary *> * _Nonnull)items
  32. fromSearchController:(InviteSearchController * _Nonnull)searchController;
  33. @end
  34. @interface InviteSearchController: NSObject
  35. @property (nonatomic, nullable, weak) id<InviteSearchControllerDelegate> delegate;
  36. - (void)performQuery:(NSString * _Nonnull)query;
  37. - (void)cancelSearch;
  38. - (void)submitSelectedItemIds:(NSArray<NSString *> * _Nonnull)ids;
  39. @end