This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* Base fragment to ensure the parent activity implements a contract interface. */ | |
| public abstract class ContractFragment<T> extends Fragment { | |
| private T mContract; | |
| @Override | |
| public void onAttach(Activity activity) { | |
| try { | |
| mContract = (T)activity; | |
| } catch (ClassCastException e) { | |
| throw new IllegalStateException(activity.getClass().getSimpleName() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation. | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A console to display Unity's debug logs in-game. | |
| /// </summary> | |
| public class Console : MonoBehaviour | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //MIT license | |
| public static UIImage ScaleImage(UIImage image, int maxSize) | |
| { | |
| UIImage res; | |
| using (CGImage imageRef = image.CGImage) | |
| { | |
| CGImageAlphaInfo alphaInfo = imageRef.AlphaInfo; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public interface IMainView | |
| { | |
| void RefreshList(IList<string> portfolioNames); | |
| void StartAddPortfolioActivity(); | |
| void StartViewPortfolioActivity(long portfolioId); | |
| void StartEditPortfolioActivity(int itemId); | |
| void StartConfigActivity(); | |
| void ExitApplication(); | |
| } | 
NewerOlder