mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
This also allows embedded release notes to be plain text using sparkle:format="plain-text" attribute. Also, Catalyst apps only support plain text release notes (compared to before where release notes weren't supported for Catalyst apps).
34 lines
793 B
Objective-C
34 lines
793 B
Objective-C
//
|
|
// SUReleaseNotesView.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 12/30/20.
|
|
// Copyright © 2020 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#if SPARKLE_BUILD_UI_BITS
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class NSView;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SUReleaseNotesView <NSObject>
|
|
|
|
@property (nonatomic, readonly) NSView *view;
|
|
|
|
- (void)loadString:(NSString *)string baseURL:(NSURL * _Nullable)baseURL completionHandler:(void (^)(NSError * _Nullable))completionHandler;
|
|
|
|
- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL completionHandler:(void (^)(NSError * _Nullable))completionHandler;
|
|
|
|
- (void)stopLoading;
|
|
|
|
- (void)setDrawsBackground:(BOOL)drawsBackground;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif
|