mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
68 lines
1.9 KiB
Objective-C
68 lines
1.9 KiB
Objective-C
/*
|
|
Copyright 2017 Aram Sargsyan
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
#import "ShareViewController.h"
|
|
|
|
#import <MatrixSDK/MatrixSDK.h>
|
|
#import <MatrixKit/MatrixKit.h>
|
|
|
|
|
|
@implementation ShareViewController
|
|
|
|
#pragma mark - Lifecycle
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
|
|
//UI configuration
|
|
[self.view setBackgroundColor:[UIColor yellowColor]];
|
|
self.view.alpha = 0.5;
|
|
|
|
//MatrixSDK test
|
|
NSLog(@"SDK VERSION ====== %@", MatrixSDKVersion);
|
|
|
|
//MatrixKit test
|
|
NSLog(@"KIT VERSION ====== %@", MatrixKitVersion);
|
|
|
|
//UserDefaults test
|
|
//NSUserDefaults *sharedUserDefaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.org.matrix.riot"];
|
|
}
|
|
|
|
|
|
/*#pragma mark - SLComposeServiceViewController
|
|
|
|
- (BOOL)isContentValid
|
|
{
|
|
// Do validation of contentText and/or NSExtensionContext attachments here
|
|
return YES;
|
|
}
|
|
|
|
- (void)didSelectPost
|
|
{
|
|
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
|
|
|
|
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
|
|
[self.extensionContext completeRequestReturningItems:@[] completionHandler:nil];
|
|
}
|
|
|
|
- (NSArray *)configurationItems
|
|
{
|
|
// To add configuration options via table cells at the bottom of the sheet, return an array of SLComposeSheetConfigurationItem here.
|
|
return @[];
|
|
}*/
|
|
|
|
@end
|