iOS Module SDK
0.97
Tools for building CampusLife modules
|
00001 //Copyright 2011 Desire2Learn Incorporated 00002 // 00003 //Licensed under the Apache License, Version 2.0 (the "License"); 00004 //you may not use this file except in compliance with the License. 00005 //You may obtain a copy of the License at 00006 // 00007 //http://www.apache.org/licenses/LICENSE-2.0 00008 // 00009 //Unless required by applicable law or agreed to in writing, software 00010 //distributed under the License is distributed on an "AS IS" BASIS, 00011 //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 //See the License for the specific language governing permissions and 00013 //limitations under the License. 00014 00015 00016 #import <Foundation/Foundation.h> 00017 #import <UIKit/UIKit.h> 00018 #import "D2LModuleAssistant.h" 00019 #import "D2LModuleScreenshotAssistant.h" 00020 00029 @protocol D2LModule <NSObject> 00030 00031 @required 00032 00042 - (id)initWithAssistant:(id<D2LModuleAssistant>)assistant; 00043 00044 00045 @optional 00046 00056 - (UIViewController *)getViewController; 00057 00064 - (void)moduleWillOpenFirstTime; 00065 00070 - (void)moduleWillOpen; 00071 00075 - (void)moduleWillClose; 00076 00081 - (void)moduleWillSuspend; 00082 00087 - (void)moduleWillResume; 00088 00095 - (void)applicationWillSuspend; 00096 00103 - (void)applicationWillResume; 00104 00111 - (void)applicationWillTerminate; 00112 00119 - (void)applicationDidBecomeActive; 00120 00127 - (void)applicationWillResignActive; 00128 00143 - (void)takeScreenshots:(id<D2LModuleScreenshotAssistant>)screenshotAssistant; 00144 @end