 - parameter failureBlock: This block will be executed on the main thread if the user dismissed the PermissionView and did not gave the desired permission.
 */
     
-
-    func presentPermissionViewIfNeededInViewController(viewController: UIViewController, interestedInPermission: PermissionInterestedIn?, successBlock: (()->())?, failureBlock: (()->())? ) -> Bool {
+    public func presentPermissionViewIfNeededInViewController(viewController: UIViewController, interestedInPermission: PermissionInterestedIn?, successBlock: (()->())?, failureBlock: (()->())? ) -> Bool {
         
         let status = stateOfPermissions()
         

    
    private var successBlock : (()->())?
    private var failureBlock: (()->())?
    /**
    Checks if the user agreed to let the app use the location.
    Requests the permission if it is not already granted.
    - returns: true if user agreed false if not
    
    */

/**
Use this method to present the permission view.
The user will be asked to give the permission by a dialog.

When the user already granted his permission, the button is not enabled (early version, later: checkmark indication).

- returns: Bool that is true, when requested permission is already granted.
If other permissions are missing, the PermissionView will be displayed.
    
- parameter viewController: The UIViewController on which the PermissionView shall be presented.
    

                    })
                }
            })
            //return something so that the calling code an continue.
            return false
        }
                
        successBlock?()
