CPDFURLAction.h 976 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // CPDFURLAction.h
  3. // ComPDFKit
  4. //
  5. // Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <ComPDFKit/CPDFAction.h>
  13. /**
  14. * CPDFURLAction, a subclass of CPDFAction, defines methods for getting and setting the URL associated with a URL action.
  15. */
  16. @interface CPDFURLAction : CPDFAction
  17. #pragma mark - Initializers
  18. /**
  19. * Initializes a URL action with the specified URL.
  20. *
  21. * @param url The URL to set the action to.
  22. */
  23. - (instancetype)initWithURL:(NSString *)url NS_DESIGNATED_INITIALIZER;
  24. #pragma mark - Accessors
  25. /**
  26. * Returns the URL associated with the URL action.
  27. */
  28. - (NSString *)url;
  29. @end